Fix test to expect 401 instead of 403
This commit is contained in:
1 parent
73dcc3f4ed
commit
86eaae1754
1 file changed
+1
-1
@@ -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
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user