Really Stop test suite from crashing when this one fails.

This commit is contained in:
Rob 2015-11-13 15:51:09 -05:00
parent 32414f0fd8
commit 257f14beff

View file

@ -50,8 +50,7 @@ describe '/db/prepaid', ->
url = getURL("/db/prepaid/#{prepaid.id}/redeemers")
redeemer = { userID: otherUser.id }
request.post {uri: url, json: redeemer }, (err, res, body) ->
expect(body.redeemers).toBeDefined()
expect(body.redeemers.length).toBe(1)
expect(body.redeemers?.length).toBe(1)
expect(res.statusCode).toBe(200)
prepaid = Prepaid.findById body._id, (err, prepaid) ->
expect(err).toBeNull()