mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
spec now checks if the cursors are the same, not their markers
This commit is contained in:
parent
3b3dc83a38
commit
63e491affa
@ -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", ->
|
||||
|
Loading…
Reference in New Issue
Block a user