Skip to content

Commit

Permalink
Fix problems with sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoHernandez92 committed May 6, 2024
1 parent 5edc453 commit 74c52db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/users.controller/users.controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ describe('UserController', () => {
} as unknown as Response;
const mockNext = jest.fn();

Auth.compare = jest.fn().mockResolvedValueOnce(true);
Auth.signJwt = jest.fn().mockReturnValueOnce('mockToken');
Auth.compare = jest.fn().mockReturnValue(true);
Auth.signJwt = jest.fn().mockResolvedValue('mockToken');

await controller.login(mockRequest, mockResponse, mockNext);

Expand Down

0 comments on commit 74c52db

Please sign in to comment.