diff --git a/tests/object.test.ts b/tests/object.test.ts index 38bdfbed..ecb7801c 100644 --- a/tests/object.test.ts +++ b/tests/object.test.ts @@ -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();