diff --git a/packages/slate/test/transforms/removeNodes/path/block-only-void.js b/packages/slate/test/transforms/removeNodes/path/block-only-void.js new file mode 100644 index 000000000..057aa9509 --- /dev/null +++ b/packages/slate/test/transforms/removeNodes/path/block-only-void.js @@ -0,0 +1,19 @@ +/** @jsx jsx */ + +import { Editor } from 'slate' +import { jsx } from '../../..' + +export const input = ( + + + + one + + +) + +export const run = editor => { + Editor.removeNodes(editor, { at: [0] }) +} + +export const output = diff --git a/packages/slate/test/transforms/removeNodes/path/block-void.js b/packages/slate/test/transforms/removeNodes/path/block-void.js new file mode 100644 index 000000000..8af58ec1b --- /dev/null +++ b/packages/slate/test/transforms/removeNodes/path/block-void.js @@ -0,0 +1,29 @@ +/** @jsx jsx */ + +import { Editor } from 'slate' +import { jsx } from '../../..' + +export const input = ( + + + + one + + two + three + +) + +export const run = editor => { + Editor.removeNodes(editor, { at: [0] }) +} + +export const output = ( + + + + two + + three + +)