Skip to content

Commit

Permalink
test: add omit oneOf fields test
Browse files Browse the repository at this point in the history
  • Loading branch information
Focadecombate committed Nov 15, 2022
1 parent 6f93b9d commit c668a6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions integration/oneof-properties/oneof-properties-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,12 @@ describe('oneof=properties (default)', () => {
let fromJson = PleaseChoose.fromJSON(pbjsJson);
expect(fromJson).toEqual(debbie);
});

it('should allow to omit oneOf fields', () => {
const msg: PleaseChoose = {
name: 'foo',
age: 42,
};
expect(msg).toBeDefined();
});
});

0 comments on commit c668a6b

Please sign in to comment.