mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
Is it async causing test to fail? Trying to make waterfall work.
This commit is contained in:
parent
d69f217d24
commit
fafb102530
1 changed files with 2 additions and 2 deletions
|
|
@ -479,13 +479,13 @@ describe "API", ->
|
|||
cb()
|
||||
], done
|
||||
|
||||
it "Creates a challenge with prize", (done) ->
|
||||
it "User creates a challenge with prize", (done) ->
|
||||
User.findByIdAndUpdate _id,
|
||||
$set:
|
||||
"balance": 8
|
||||
, (err, _user) ->
|
||||
expect(err).to.not.be.ok()
|
||||
async.parallel [
|
||||
async.waterfall [
|
||||
(cb) ->
|
||||
request.post(baseURL + "/challenges").send(
|
||||
group: group._id
|
||||
|
|
|
|||
Loading…
Reference in a new issue