mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 18:09:49 +02:00
fix selection transform tests
This commit is contained in:
@@ -8,7 +8,7 @@ export default function (state) {
|
||||
|
||||
const next = state
|
||||
.transform()
|
||||
.setSelection({
|
||||
.moveTo({
|
||||
anchorKey: second.key,
|
||||
anchorOffset: 0,
|
||||
focusKey: second.key,
|
||||
|
@@ -8,7 +8,7 @@ export default function (state) {
|
||||
|
||||
const next = state
|
||||
.transform()
|
||||
.setSelection({
|
||||
.moveTo({
|
||||
anchorKey: second.key,
|
||||
anchorOffset: 0,
|
||||
focusKey: second.key,
|
||||
|
@@ -8,7 +8,7 @@ export default function (state) {
|
||||
|
||||
const next = state
|
||||
.transform()
|
||||
.setSelection({
|
||||
.moveTo({
|
||||
anchorKey: second.key,
|
||||
anchorOffset: 0,
|
||||
focusKey: second.key,
|
||||
|
@@ -8,7 +8,7 @@ export default function (state) {
|
||||
|
||||
const next = state
|
||||
.transform()
|
||||
.setSelection({
|
||||
.moveTo({
|
||||
anchorKey: second.key,
|
||||
anchorOffset: 0,
|
||||
focusKey: second.key,
|
||||
|
@@ -13,7 +13,7 @@ export default function (state) {
|
||||
const sel = selection.merge(props)
|
||||
const next = state
|
||||
.transform()
|
||||
.setSelection(props)
|
||||
.moveTo(props)
|
||||
.apply()
|
||||
|
||||
assert.deepEqual(
|
@@ -12,7 +12,7 @@ export default function (state) {
|
||||
|
||||
const next = state
|
||||
.transform()
|
||||
.setSelection(sel)
|
||||
.moveTo(sel)
|
||||
.apply()
|
||||
|
||||
assert.deepEqual(
|
Reference in New Issue
Block a user