Skip to content

Commit ffa10ef

Browse files
committed
signUp testing for already existing user,invalid signup and valid signup
relates to #59
1 parent 17282e5 commit ffa10ef

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

server/controllers/auth.js

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ exports.signUp = (req, res) => {
3232
})
3333
})
3434
.then(hash => {
35-
console.log('hash', hash);
3635
return queries.addUser(name, email, hash)
3736
})
3837
.then (user => {

server/tests/signup.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const signUpTest = () => {
3232
.expect(200)
3333
.expect('Content-Type', /json/)
3434
.end((err, res) => {
35-
console.log(res.body);
3635
t.equal(res.body.hasOwnProperty('token'), true, 'response object should have a property "token"');
3736
t.end();
3837
});

0 commit comments

Comments
 (0)