unit test fixes + error refactor
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 10m52s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 10m52s
This commit is contained in:
@@ -293,7 +293,7 @@ describe('Auth Routes (/api/auth)', () => {
|
||||
.send({ email: 'locked@test.com', password: 'password123' });
|
||||
|
||||
expect(response.status).toBe(401);
|
||||
expect(response.body.message).toBe('Account is temporarily locked.');
|
||||
expect(response.body.message).toBe('Account is temporarily locked. Please try again in 15 minutes.');
|
||||
});
|
||||
|
||||
it('should return 401 if user is not found', async () => {
|
||||
|
||||
Reference in New Issue
Block a user