mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
Used this of parent in hopes of getting correct challenge id
This commit is contained in:
parent
168d72fb0a
commit
fef2c834c9
1 changed files with 1 additions and 0 deletions
|
|
@ -506,6 +506,7 @@ describe "API", ->
|
|||
done()
|
||||
|
||||
it "User deletes a challenge with prize and gets refund", (done) ->
|
||||
itThis = this
|
||||
request.del(baseURL + "/challenges/" + challenge._id).end (res) ->
|
||||
User.findById _id, (err, user) ->
|
||||
expect(user.balance).to.be 8
|
||||
|
|
|
|||
Loading…
Reference in a new issue