From e2dd13c24d7576ac615835e38555ce2fc65cafaf Mon Sep 17 00:00:00 2001 From: Oguz Gelal Date: Fri, 21 Feb 2020 09:27:13 +0900 Subject: [PATCH] Fix test folders name swap for interfaces/Editor/nodes mode-highest vs. mode-all (#3484) --- packages/slate/test/interfaces/Editor/nodes/mode-all/block.js | 4 +++- .../slate/test/interfaces/Editor/nodes/mode-highest/block.js | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/slate/test/interfaces/Editor/nodes/mode-all/block.js b/packages/slate/test/interfaces/Editor/nodes/mode-all/block.js index a200911d2..cd094df16 100644 --- a/packages/slate/test/interfaces/Editor/nodes/mode-all/block.js +++ b/packages/slate/test/interfaces/Editor/nodes/mode-all/block.js @@ -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 = [ , [0], ], + [one, [0, 0]], [ two , [1], ], + [two, [1, 0]], ] diff --git a/packages/slate/test/interfaces/Editor/nodes/mode-highest/block.js b/packages/slate/test/interfaces/Editor/nodes/mode-highest/block.js index cd094df16..a200911d2 100644 --- a/packages/slate/test/interfaces/Editor/nodes/mode-highest/block.js +++ b/packages/slate/test/interfaces/Editor/nodes/mode-highest/block.js @@ -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 = [ , [0], ], - [one, [0, 0]], [ two , [1], ], - [two, [1, 0]], ]