1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-23 07:22:55 +02:00

Fix test folders name swap for interfaces/Editor/nodes mode-highest vs. mode-all (#3484)

This commit is contained in:
Oguz Gelal
2020-02-21 09:27:13 +09:00
committed by GitHub
parent e9e1eb2524
commit e2dd13c24d
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ export const input = (
export const test = editor => { export const test = editor => {
return Array.from( return Array.from(
Editor.nodes(editor, { at: [], match: n => n.a, mode: 'highest' }) Editor.nodes(editor, { at: [], match: n => n.a, mode: 'all' })
) )
} }
@@ -27,10 +27,12 @@ export const output = [
</block>, </block>,
[0], [0],
], ],
[<block a>one</block>, [0, 0]],
[ [
<block a> <block a>
<block a>two</block> <block a>two</block>
</block>, </block>,
[1], [1],
], ],
[<block a>two</block>, [1, 0]],
] ]

View File

@@ -16,7 +16,7 @@ export const input = (
export const test = editor => { export const test = editor => {
return Array.from( return Array.from(
Editor.nodes(editor, { at: [], match: n => n.a, mode: 'all' }) Editor.nodes(editor, { at: [], match: n => n.a, mode: 'highest' })
) )
} }
@@ -27,12 +27,10 @@ export const output = [
</block>, </block>,
[0], [0],
], ],
[<block a>one</block>, [0, 0]],
[ [
<block a> <block a>
<block a>two</block> <block a>two</block>
</block>, </block>,
[1], [1],
], ],
[<block a>two</block>, [1, 0]],
] ]