From d5fe818cec99898a92b75eb4ee2d4e2e5bd47cd0 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Mon, 19 Jun 2023 17:44:45 -0400 Subject: [PATCH] test: use `toMatchObject` instead of `toStrictEqual` --- test/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.test.ts b/test/index.test.ts index 12a58d6f9..ec4fe4e49 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -1853,7 +1853,7 @@ test("auth.hook(): handle 401 in first 5 seconds (#65)", async () => { expect(error.status).toEqual(401); } - expect(data).toStrictEqual({ id: 123 }); + expect(data).toMatchObject({ id: 123 }); expect(mock.done()).toBe(true); // @ts-ignore