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:
@@ -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]],
|
||||||
]
|
]
|
||||||
|
@@ -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]],
|
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user