Skip to content

Commit

Permalink
Add last configuration and some test
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioQuijanoB committed May 7, 2024
1 parent af3d6d8 commit 9a984b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/user.controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9a984b3

Please sign in to comment.