Skip to content

Commit

Permalink
respond to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Oct 16, 2024
1 parent 530d59a commit 23c8ab9
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions tests/feature_resolution_editions.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ tape.test("feature resolution inheritance oneofs", function(test) {
var rootEditionsOverriden = protobuf.parse(`
edition = "2023";
option features.(abc).d_e = deeply_nested_false;
message Message {
message Message {
oneof SomeOneOf {
option features.json_format = LEGACY_BEST_EFFORT;
int32 a = 13;
string b = 14;
string b = 14 [features.json_format = ALLOW];
}
}`).root.resolveAll();

Expand All @@ -255,21 +255,6 @@ tape.test("feature resolution inheritance oneofs", function(test) {
'(abc)': { d_e: 'deeply_nested_false' }
})

test.end();
});

tape.test("feature resolution inheritance oneofs to field", function(test) {
var rootEditionsOverriden = protobuf.parse(`
edition = "2023";
option features.(abc).d_e = deeply_nested_false;
message Message {
oneof SomeOneOf {
option features.json_format = LEGACY_BEST_EFFORT;
int32 a = 13;
string b = 14 [features.json_format = ALLOW];
}
}`).root.resolveAll();

test.same(rootEditionsOverriden.lookup("SomeOneOf").fieldsArray.find(x => x.name === 'b')._features, {
enum_type: 'OPEN',
field_presence: 'EXPLICIT',
Expand Down

0 comments on commit 23c8ab9

Please sign in to comment.