Skip to content

Commit 17faa1c

Browse files
authored
improve coverage of ObjectSchema (#186)
1 parent 88e9539 commit 17faa1c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/ObjectSchema.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,16 @@ describe('ObjectSchema', () => {
652652
})
653653
})
654654

655+
it('empty props', () => {
656+
expect(
657+
ObjectSchema()
658+
.definition('foo')
659+
.valueOf().definitions
660+
).toEqual({
661+
foo: {},
662+
})
663+
})
664+
655665
it('with id', () => {
656666
expect(
657667
ObjectSchema()

0 commit comments

Comments
 (0)