Add next tick call

This commit is contained in:
probablycorey
2014-06-23 09:13:39 -07:00
parent 43cb9af4a4
commit 9a5da3c27e

View File

@@ -1785,6 +1785,7 @@ describe "EditorComponent", ->
editor.on 'screen-lines-changed', -> callingOrder.push 'screen-lines-changed'
wrapperView.on 'editor:display-updated', -> callingOrder.push 'editor:display-updated'
editor.insertText("HELLO! HELLO!\n HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! ")
nextTick()
expect(callingOrder).toEqual ['screen-lines-changed', 'editor:display-updated']