Commit a185757d authored by Yakulu's avatar Yakulu
Browse files

debug fix

parent 90c0ee1b
......@@ -125,9 +125,7 @@ module.exports = (function () {
var loginPath = pre + 'login';
socket.on(loginPath, function (data) {
console.log(data);
passport.authenticate('jwt', function () {
console.log('here');
if (err) { return socket.emit({ error: err.message }); }
if (!user) { return socket.emit({ error: info.message }); }
socket.emit({
......
......@@ -574,7 +574,6 @@
rq.put(userRoute + '/mikey', b, function () {
b.body.login = 'mike';
rq.put(userRoute + '/mikey', b, function (err, resp, body) {
console.log(body);
expect(resp.statusCode).toBe(200);
expect(body.success).toBeTruthy();
expect(body.key).toBe('mikey');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment