mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix(auth): update error messages in AuthService tests for clarity
This commit is contained in:
parent
82b4de5695
commit
b0e508fe4e
1 changed files with 3 additions and 3 deletions
|
|
@ -459,7 +459,7 @@ describe('AuthService', () => {
|
|||
mockUserService.findById.mockResolvedValue(null)
|
||||
|
||||
await expect(service.confirmEmail('verification-token')).rejects.toThrow(
|
||||
'USER_NOT_FOUND',
|
||||
'User not found',
|
||||
)
|
||||
|
||||
expect(emailVerificationService.verifyToken).toHaveBeenCalledWith(
|
||||
|
|
@ -535,7 +535,7 @@ describe('AuthService', () => {
|
|||
|
||||
await expect(
|
||||
service.resendVerification('test@example.com'),
|
||||
).rejects.toThrow('USER_NOT_FOUND')
|
||||
).rejects.toThrow('User not found')
|
||||
|
||||
expect(userService.findByEmail).toHaveBeenCalledWith('test@example.com')
|
||||
})
|
||||
|
|
@ -547,7 +547,7 @@ describe('AuthService', () => {
|
|||
|
||||
await expect(
|
||||
service.resendVerification('test@example.com'),
|
||||
).rejects.toThrow('USER_ALREADY_VERIFIED')
|
||||
).rejects.toThrow('Email already verified. Please login to continue.')
|
||||
|
||||
expect(userService.findByEmail).toHaveBeenCalledWith('test@example.com')
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue