mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add next tick call
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user