mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Reset spy in spec before making next assertion
This commit is contained in:
@@ -1103,6 +1103,8 @@ describe "Editor", ->
|
||||
editor.setCursorScreenPosition([4, 10], autoscroll: false)
|
||||
editor.setCursorScreenPosition([4, 10])
|
||||
expect(editor.scrollToPixelPosition).toHaveBeenCalled()
|
||||
editor.scrollToPixelPosition.reset()
|
||||
|
||||
editor.setCursorBufferPosition([4, 10])
|
||||
expect(editor.scrollToPixelPosition).toHaveBeenCalled()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user