mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Really Stop test suite from crashing when this one fails.
This commit is contained in:
parent
32414f0fd8
commit
257f14beff
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue