diff --git a/src/api/http/users.test.ts b/src/api/http/users.test.ts index a72f532..9f84325 100644 --- a/src/api/http/users.test.ts +++ b/src/api/http/users.test.ts @@ -210,7 +210,7 @@ describe("Function editPassword(username: string, newPassword: string) ", () => it("It should return false if request fails due to unknown error and exits through catch block", async () => { - mock_server_request_function(jest.fn(() => Promise.resolve({ + mock_server_request_function(jest.fn(() => Promise.reject({ status: 500, json: () => Promise.reject("Failed") })));