mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
WaitsForPromise outputs reject callback arguments
This commit is contained in:
@@ -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 = ->
|
||||
|
||||
Reference in New Issue
Block a user