diff --git a/Server/tests/controllers/authController.test.js b/Server/tests/controllers/authController.test.js index 9b9c64cd5..cff7554cd 100644 --- a/Server/tests/controllers/authController.test.js +++ b/Server/tests/controllers/authController.test.js @@ -467,7 +467,7 @@ describe("Auth Controller - editUser", async () => { }); await editUser(req, res, next); expect(next.firstCall.args[0]).to.be.an("error"); - expect(next.firstCall.args[0].status).to.equal(403); + expect(next.firstCall.args[0].status).to.equal(401); expect(next.firstCall.args[0].message).to.equal( errorMessages.AUTH_INCORRECT_PASSWORD );