strict equal for response object

This commit is contained in:
nflnkr 2022-12-03 23:58:25 +03:00
parent 0258c53eaa
commit b3719a51f8

@ -45,7 +45,7 @@ describe("authentication", () => {
password: "password",
phoneNumber: "1234567890"
});
expect(result).toMatchObject(authSuccessResultMatcher);
expect(result).toStrictEqual(authSuccessResultMatcher);
});
});
describe("login route", () => {
@ -75,7 +75,7 @@ describe("authentication", () => {
email: `test${randomNumber}@test.com`,
password: "password"
});
expect(result).toMatchObject(authSuccessResultMatcher);
expect(result).toStrictEqual(authSuccessResultMatcher);
});
});
});