Possibly fixed a server test in accordance with real private properties.

This commit is contained in:
Nick Winter 2014-10-06 18:05:20 -07:00
parent f9b510aac1
commit 7e7ec719b0

View file

@ -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()