From c06f82c5e8b5c242fe8504309b785712afc61184 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Mon, 2 Dec 2019 16:33:55 -0500 Subject: [PATCH] add insertText parent path test --- .../test/transforms/insertText/path/block.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/slate/test/transforms/insertText/path/block.js diff --git a/packages/slate/test/transforms/insertText/path/block.js b/packages/slate/test/transforms/insertText/path/block.js new file mode 100644 index 000000000..64afa03d4 --- /dev/null +++ b/packages/slate/test/transforms/insertText/path/block.js @@ -0,0 +1,20 @@ +/** @jsx jsx */ + +import { Editor } from 'slate' +import { jsx } from '../../..' + +export const input = ( + + word + +) + +export const run = editor => { + Editor.insertText(editor, 'x', { at: [0] }) +} + +export const output = ( + + x + +)