mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Wait for nextTick after presenter updates
This gives any nextTick callbacks in the model a chance to complete before proceeding with tests.
This commit is contained in:
@@ -67,7 +67,7 @@ describe "TextEditorPresenter", ->
|
||||
fn?()
|
||||
disposable = presenter.onDidUpdateState ->
|
||||
disposable.dispose()
|
||||
done()
|
||||
process.nextTick(done)
|
||||
|
||||
tiledContentContract = (stateFn) ->
|
||||
it "contains states for tiles that are visible on screen", ->
|
||||
|
||||
Reference in New Issue
Block a user