mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 00:40:56 -05:00
Let's at least see what that test failure error is
This commit is contained in:
parent
63d7df538c
commit
3446133452
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ unittest.getUser = (name, email, password, done, force) ->
|
|||
req = request.post(getURL('/db/user'), (err, response, body) ->
|
||||
throw err if err
|
||||
User.findOne({email: email}).exec((err, user) ->
|
||||
throw err if err
|
||||
user.set('permissions', if password is '80yqxpb38j' then ['admin'] else [])
|
||||
user.set('name', name)
|
||||
user.save (err) ->
|
||||
|
|
Loading…
Reference in a new issue