Skip to content

Commit

Permalink
feat: added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JUSTIVE committed Apr 7, 2024
1 parent 59d6eee commit 5ac1c42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/object.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ describe('Object', () => {
})
// @ts-expect-error: non empty object aren't caught
.exhaustive();
expect(fn({a: []})).toEqual('yes');
expect(fn({a: null})).toEqual('yes');
expect(fn({a: undefined})).toEqual('yes');
expect(fn({})).toEqual('yes');
expect(() => fn({ hello: 'world' })).toThrow();
expect(() => fn(() => {})).toThrow();
Expand Down

0 comments on commit 5ac1c42

Please sign in to comment.