spec now checks if the cursors are the same, not their markers

This commit is contained in:
Luke Pommersheim 2015-06-12 08:37:40 +02:00
parent 3b3dc83a38
commit 63e491affa

View File

@ -941,7 +941,7 @@ describe "TextEditor", ->
it "returns the existing cursor", ->
cursor1 = editor.addCursorAtScreenPosition([0, 2])
cursor2 = editor.addCursorAtScreenPosition([0, 2])
expect(cursor2.marker).toBe cursor1.marker
expect(cursor2).toBe cursor1
describe "addCursorAtBufferPosition(bufferPosition)", ->
describe "when a cursor already exists at the position", ->