WaitsForPromise outputs reject callback arguments

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-07-12 12:11:48 -07:00
parent 64a9c245e7
commit ded4ac7fa1

View File

@@ -104,8 +104,8 @@ window.waitsForPromise = (args...) ->
moveOn()
else
promise.done(moveOn)
promise.fail ->
jasmine.getEnv().currentSpec.fail("Expected promise to be resolved, but it was rejected")
promise.fail (error) ->
jasmine.getEnv().currentSpec.fail("Expected promise to be resolved, but it was rejected with #{jasmine.pp(error)}")
moveOn()
window.resetTimeouts = ->