Skip to content

Add detailed unit test for Verification.verifyMobile() #167

@serdiukov-o-nordwhale

Description

@serdiukov-o-nordwhale

We had an issue with incorrect expiration check (which have appeared after refactoring during new Zoom integration)

For prevent similar situations in the future we should test all cases:

  • empty code was passed
  • code doesnt matches
  • code was expired
await expect(verifyMobile(<test user>, { otp: <test OTP> })).rejects.toThrow('No code to validate, retry')
// other cases

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions