Skip to content

Commit

Permalink
fix(tests): fix id string and number assertion
Browse files Browse the repository at this point in the history
convert id to string before running assertions for sql databases
  • Loading branch information
Frantz Kati committed Feb 3, 2021
1 parent b4bae37 commit 81ef437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tests/packages/auth/two-factor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ test('registered user can enable, confirm and disable 2-factor authentication',
confirm_enable_2fa_response.body.data
.confirm_student_enable_two_factor_auth
).toEqual({
id: user.id,
id: user.id.toString(),
two_factor_enabled: true
})

Expand Down Expand Up @@ -127,7 +127,7 @@ test('registered user can enable, confirm and disable 2-factor authentication',
expect(
disable_2fa_response.body.data.disable_student_two_factor_auth
).toEqual({
id: user.id,
id: user.id.toString(),
two_factor_enabled: false
})
})

0 comments on commit 81ef437

Please sign in to comment.