Skip to content

Commit

Permalink
test: use toMatchObject instead of toStrictEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Jun 19, 2023
1 parent a9b9ffb commit d5fe818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5fe818

Please sign in to comment.