mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 15:02:51 +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 => {
|
||||
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>,
|
||||
[0],
|
||||
],
|
||||
[<block a>one</block>, [0, 0]],
|
||||
[
|
||||
<block a>
|
||||
<block a>two</block>
|
||||
</block>,
|
||||
[1],
|
||||
],
|
||||
[<block a>two</block>, [1, 0]],
|
||||
]
|
||||
|
@@ -16,7 +16,7 @@ export const input = (
|
||||
|
||||
export const test = editor => {
|
||||
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>,
|
||||
[0],
|
||||
],
|
||||
[<block a>one</block>, [0, 0]],
|
||||
[
|
||||
<block a>
|
||||
<block a>two</block>
|
||||
</block>,
|
||||
[1],
|
||||
],
|
||||
[<block a>two</block>, [1, 0]],
|
||||
]
|
||||
|
Reference in New Issue
Block a user