1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

fix selection transform tests

This commit is contained in:
Ian Storm Taylor
2016-08-30 15:35:07 -07:00
parent 9d2a3b9ecb
commit 68e8be229d
8 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ export default function (state) {
const next = state const next = state
.transform() .transform()
.setSelection({ .moveTo({
anchorKey: second.key, anchorKey: second.key,
anchorOffset: 0, anchorOffset: 0,
focusKey: second.key, focusKey: second.key,

View File

@@ -8,7 +8,7 @@ export default function (state) {
const next = state const next = state
.transform() .transform()
.setSelection({ .moveTo({
anchorKey: second.key, anchorKey: second.key,
anchorOffset: 0, anchorOffset: 0,
focusKey: second.key, focusKey: second.key,

View File

@@ -8,7 +8,7 @@ export default function (state) {
const next = state const next = state
.transform() .transform()
.setSelection({ .moveTo({
anchorKey: second.key, anchorKey: second.key,
anchorOffset: 0, anchorOffset: 0,
focusKey: second.key, focusKey: second.key,

View File

@@ -8,7 +8,7 @@ export default function (state) {
const next = state const next = state
.transform() .transform()
.setSelection({ .moveTo({
anchorKey: second.key, anchorKey: second.key,
anchorOffset: 0, anchorOffset: 0,
focusKey: second.key, focusKey: second.key,

View File

@@ -13,7 +13,7 @@ export default function (state) {
const sel = selection.merge(props) const sel = selection.merge(props)
const next = state const next = state
.transform() .transform()
.setSelection(props) .moveTo(props)
.apply() .apply()
assert.deepEqual( assert.deepEqual(

View File

@@ -12,7 +12,7 @@ export default function (state) {
const next = state const next = state
.transform() .transform()
.setSelection(sel) .moveTo(sel)
.apply() .apply()
assert.deepEqual( assert.deepEqual(