mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Dont crash all the tests if stripe is 403
This commit is contained in:
parent
9bf07d9ab3
commit
449f62351e
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ describe '/db/prepaid', ->
|
|||
redeemer = { userID: otherUser.id }
|
||||
request.post {uri: url, json: redeemer }, (err, res, body) ->
|
||||
expect(res.statusCode).toBe(200)
|
||||
return done() unless res.statusCode is 200
|
||||
expect(body.redeemers.length).toBe(0)
|
||||
done()
|
||||
|
||||
|
|
Loading…
Reference in a new issue