Skip to content

Commit e37ef8b

Browse files
committed
fix cursor test
1 parent 62762a8 commit e37ef8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/y-prosemirror.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ export const testInitialCursorPosition2 = async (_tc) => {
389389
p.insert(0, [new Y.XmlText('hello world!')])
390390
yxml.insert(0, [p])
391391
console.log('anchor', view.state.selection.anchor)
392-
t.assert(view.state.selection.anchor === 0)
393-
t.assert(view.state.selection.head === 0)
392+
t.assert(view.state.selection.anchor === 1)
393+
t.assert(view.state.selection.head === 1)
394394
}
395395

396396
export const testVersioning = async (_tc) => {

0 commit comments

Comments
 (0)