Reset spy in spec before making next assertion

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-02-05 16:34:36 -07:00
parent 5a1de9fa44
commit 85111748ec

View File

@@ -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()