mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Possibly fixed a server test in accordance with real private properties.
This commit is contained in:
parent
f9b510aac1
commit
7e7ec719b0
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ describe 'POST /db/user', ->
|
||||||
request.get url, (err, res, body) ->
|
request.get url, (err, res, body) ->
|
||||||
expect(res.statusCode).toBe(200)
|
expect(res.statusCode).toBe(200)
|
||||||
user = JSON.parse(body)
|
user = JSON.parse(body)
|
||||||
expect(user.email).toBe('normal@jo.com')
|
expect(user.name).toBe('Joe') # Anyone should be served the username.
|
||||||
|
expect(user.email).toBeUndefined() # Shouldn't be available to just anyone.
|
||||||
expect(user.passwordHash).toBeUndefined()
|
expect(user.passwordHash).toBeUndefined()
|
||||||
done()
|
done()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue