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:
Nathan Sobo
2015-11-08 22:47:14 -07:00
parent 21f8ad6958
commit 98c420a408

View File

@@ -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", ->