We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d6eee commit 5ac1c42Copy full SHA for 5ac1c42
tests/object.test.ts
@@ -117,6 +117,9 @@ describe('Object', () => {
117
})
118
// @ts-expect-error: non empty object aren't caught
119
.exhaustive();
120
+ expect(fn({a: []})).toEqual('yes');
121
+ expect(fn({a: null})).toEqual('yes');
122
+ expect(fn({a: undefined})).toEqual('yes');
123
expect(fn({})).toEqual('yes');
124
expect(() => fn({ hello: 'world' })).toThrow();
125
expect(() => fn(() => {})).toThrow();
0 commit comments