From 44900ebb149349cd19ebe0d35e583cc4d0c35d0e Mon Sep 17 00:00:00 2001 From: Ivan Voskoboinyk Date: Wed, 20 Oct 2021 15:20:39 +0300 Subject: [PATCH] Fix withVoids test There's a slight change in behavior, but we accept it. Also there was a regression in how slate handles void nodes in 0.63, but then it was fixed somewhere between 0.63 and 0.66. See https://github.com/ianstormtaylor/slate/pull/3990 --- .../editor-v4/plugins/withVoids.test.tsx | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/packages/slate-editor/src/modules/editor-v4/plugins/withVoids.test.tsx b/packages/slate-editor/src/modules/editor-v4/plugins/withVoids.test.tsx index b984d7628..d69afccc7 100644 --- a/packages/slate-editor/src/modules/editor-v4/plugins/withVoids.test.tsx +++ b/packages/slate-editor/src/modules/editor-v4/plugins/withVoids.test.tsx @@ -112,11 +112,10 @@ describe('editor-v4 - withVoids', () => { text before - - text after + text after ) as unknown) as Editor; @@ -131,10 +130,10 @@ describe('editor-v4 - withVoids', () => { const editor = createEditor( - text before + text before 1 - text before + text before 2 @@ -155,16 +154,13 @@ describe('editor-v4 - withVoids', () => { const expected = (( - text before + text before 1 - - text before - - + text before 2 - text after + text after ) as unknown) as Editor; @@ -206,13 +202,10 @@ describe('editor-v4 - withVoids', () => { const expected = (( - - text before - - + text before - text after + text after ) as unknown) as Editor;