mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add error message to Jasmine output
This commit is contained in:
@@ -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 = ->
|
||||
|
||||
Reference in New Issue
Block a user