mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 13:48:46 +00:00
Correct test syntax
This commit is contained in:
parent
30ef563534
commit
466221f848
1 changed files with 8 additions and 5 deletions
|
|
@ -9,13 +9,16 @@ describe "GET /api/v2/user/anonymized", ->
|
|||
before (done) ->
|
||||
# TODO: Seed user with messages, rewards, dailys, checklists, webhooks, etc
|
||||
registerNewUser ->
|
||||
request.get(baseURL + "/user/anonymized").set("Accept", "application/json").end (res) ->
|
||||
expect(res.statusCode).to.be 200
|
||||
anon = res.body
|
||||
expect(anon._id).to.equal user._id
|
||||
done()
|
||||
request.get(baseURL + "/user/anonymized")
|
||||
.end (res) ->
|
||||
anon = res.body
|
||||
done()
|
||||
, true
|
||||
|
||||
it 'retains user id', (done) ->
|
||||
expect(anon._id).to.equal user._id
|
||||
done()
|
||||
|
||||
it 'removes credentials and financial information', (done) ->
|
||||
expect(anon.apiToken).to.not.exist
|
||||
expect(anon.auth.local).to.not.exist
|
||||
|
|
|
|||
Loading…
Reference in a new issue