mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
Print line number of wait timeout in presenter spec
This commit is contained in:
parent
989b546f1e
commit
ea5500a124
@ -91,7 +91,9 @@ describe "TextEditorPresenter", ->
|
||||
expectNoStateUpdate = (presenter, fn) -> expectStateUpdatedToBe(false, presenter, fn)
|
||||
|
||||
waitsForStateToUpdate = (presenter, fn) ->
|
||||
waitsFor "presenter state to update", 1000, (done) ->
|
||||
line = new Error().stack.split('\n')[2].split(':')[1]
|
||||
|
||||
waitsFor "presenter state to update at line #{line}", 1000, (done) ->
|
||||
disposable = presenter.onDidUpdateState ->
|
||||
disposable.dispose()
|
||||
process.nextTick(done)
|
||||
|
Loading…
Reference in New Issue
Block a user