Skip to content

Commit

Permalink
fix: use toEqual instead of toMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Dec 12, 2023
1 parent 91b1a87 commit 6695d11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('auth.email', async () => {
// Should return logged in user.
await expect(result).resolves.toMatchObject(expectedUser)
// Session should have been set with logged in user.
expect(session.userId).toMatch(expectedUser.id)
expect(session.userId).toEqual(expectedUser.id)
})

it('should throw if OTP is not found', async () => {
Expand Down

0 comments on commit 6695d11

Please sign in to comment.