Fix tests.

This commit is contained in:
gaba
2017-05-08 13:12:24 -07:00
parent 6310528804
commit c4c0ee79cd
8 changed files with 106 additions and 54 deletions
+1
View File
@@ -339,6 +339,7 @@ module.exports = class UsersService {
if (err.message.match('Username')) {
return reject(errors.ErrUsernameTaken);
}
console.log('DEBUG FUCKING ERROR', err);
return reject(errors.ErrEmailTaken);
}
return reject(err);