Add error message to Jasmine output

This commit is contained in:
Jessica Lord 2015-05-08 11:16:19 -07:00
parent 57a82ac239
commit c9046a6cfa

View File

@ -311,7 +311,7 @@ window.waitsForPromise = (args...) ->
else
promise.then(moveOn)
promise.catch.call promise, (error) ->
jasmine.getEnv().currentSpec.fail("Expected promise to be resolved, but it was rejected with #{jasmine.pp(error)}")
jasmine.getEnv().currentSpec.fail("Expected promise to be resolved, but it was rejected with: #{error?.message} #{jasmine.pp(error)}")
moveOn()
window.resetTimeouts = ->