Is it async causing test to fail? Trying to make waterfall work.

This commit is contained in:
NotGonnaGitUs 2015-05-04 16:36:20 +05:30
parent d69f217d24
commit fafb102530

View file

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