fixed tests
This commit is contained in:
@@ -295,7 +295,7 @@ describe('Auth Routes', () => {
|
||||
});
|
||||
|
||||
expect(response.status).toBe(401);
|
||||
expect(response.body.error).toBe('Unable to log in. Please check your email and password, or create an account.');
|
||||
expect(response.body.error).toBe('Please check your email and password, or create an account.');
|
||||
});
|
||||
|
||||
it('should reject login with invalid password', async () => {
|
||||
@@ -316,7 +316,7 @@ describe('Auth Routes', () => {
|
||||
});
|
||||
|
||||
expect(response.status).toBe(401);
|
||||
expect(response.body.error).toBe('Unable to log in. Please check your email and password, or create an account.');
|
||||
expect(response.body.error).toBe('Please check your email and password, or create an account.');
|
||||
expect(mockUser.incLoginAttempts).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user