From 74c52dbb6881ef36f2761a47597d19ded5fc56de Mon Sep 17 00:00:00 2001 From: fran hernandez Date: Mon, 6 May 2024 16:05:26 +0200 Subject: [PATCH] Fix problems with sonar --- src/controllers/users.controller/users.controller.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/users.controller/users.controller.test.ts b/src/controllers/users.controller/users.controller.test.ts index 33928d8..6d80640 100644 --- a/src/controllers/users.controller/users.controller.test.ts +++ b/src/controllers/users.controller/users.controller.test.ts @@ -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);