Skip to content

Commit 5ac1c42

Browse files
committed
feat: added more tests
1 parent 59d6eee commit 5ac1c42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/object.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ describe('Object', () => {
117117
})
118118
// @ts-expect-error: non empty object aren't caught
119119
.exhaustive();
120+
expect(fn({a: []})).toEqual('yes');
121+
expect(fn({a: null})).toEqual('yes');
122+
expect(fn({a: undefined})).toEqual('yes');
120123
expect(fn({})).toEqual('yes');
121124
expect(() => fn({ hello: 'world' })).toThrow();
122125
expect(() => fn(() => {})).toThrow();

0 commit comments

Comments
 (0)