Skip to content

Commit

Permalink
update test for controller status code
Browse files Browse the repository at this point in the history
  • Loading branch information
segunolalive committed Jan 4, 2018
1 parent 7da9c3d commit ecfd940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/test/controllers/userController.spec.js
Expand Up @@ -73,7 +73,7 @@ describe('USER CONTROLLER', () => {
.post('/api/v1/users/signin')
.send(mock.nonExistentUsername)
.end((err, res) => {
assert.equal(res.status, 403);
assert.equal(res.status, 401);
assert.equal(res.body.message, 'user does not exist');
done();
});
Expand All @@ -84,7 +84,7 @@ describe('USER CONTROLLER', () => {
.post('/api/v1/users/signin')
.send(mock.wrongPassword)
.end((err, res) => {
assert.equal(res.status, 403);
assert.equal(res.status, 401);
assert.equal(res.body.message,
'wrong username and password combination');
done();
Expand Down

0 comments on commit ecfd940

Please sign in to comment.