diff --git a/src/controllers/user.controller.test.ts b/src/controllers/user.controller.test.ts index 816002a..595d221 100644 --- a/src/controllers/user.controller.test.ts +++ b/src/controllers/user.controller.test.ts @@ -93,7 +93,7 @@ describe('Given a instance of the class UsersController', () => { describe('And an error is thrown', () => { test('Then it should call next with an error', async () => { - req.body = { email: 'sample@mail.com', password: 'password' }; + req.body = { email: 'sample@hotmail.com', password: 'password' }; (repo.searchForLogin as jest.Mock).mockRejectedValue(new Error()); await controller.login(req, res, next); expect(next).toHaveBeenCalledWith(