From 5ac1c420247315e4a6a0e517332d3b3af9f215d6 Mon Sep 17 00:00:00 2001 From: JUSTIVE Date: Sun, 7 Apr 2024 18:08:56 +0900 Subject: [PATCH] feat: added more tests --- tests/object.test.ts | 3 +++ 1 file changed, 3 insertions(+) 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();