Skip to content

Commit

Permalink
modified test
Browse files Browse the repository at this point in the history
  • Loading branch information
chi_Script committed Oct 2, 2018
1 parent ee780e7 commit 0d9d77f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const Router = require('express').Router
const passport = require('passport');
const User = require('../model/User');
const signupController = require('../controllers/signupController')
const cfg = require('../controllers/config')
const setupPassport = require('../config/passport')
//const cfg = require('../controllers/config')
//const setupPassport = require('../config/passport')

const app = Router()
// Task1 begins here
Expand Down
4 changes: 2 additions & 2 deletions test/api/accounTest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('POST /signup', () => {
done();
});
});
it('it should return 404 when User is already registered in db ', done => {
it('it should return 400 when User is already registered in db ', done => {
const params = {
email: 'chiscript@gmail.com',
password: 'they are here',
Expand All @@ -37,7 +37,7 @@ describe('POST /signup', () => {
.post('/signup')
.send(params)
.end((err, res) => {
res.should.have.status(404);
res.should.have.status(400);
done();
});
});
Expand Down

0 comments on commit 0d9d77f

Please sign in to comment.