1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-09 08:46:35 +02:00
Files
slate/packages/slate-history/test/undo/insert_text/contiguous.tsx
Bjørn Stabell b4eeccb017 Ensure round-trip tests don't mutate output before checking against it => reveals 4 tests are broken (#4188)
* Ensure round-trip tests don't mutate output before checking against it.  Need deep copy instead of shallow.

* Skip the 4 tests that are broken - they should perhaps be fixed in a separate PR
2021-05-07 09:52:55 -04:00

19 lines
327 B
TypeScript

/** @jsx jsx */
import { jsx } from '../..'
import { cloneDeep } from 'lodash'
export const run = editor => {
editor.insertText('t')
editor.insertText('w')
editor.insertText('o')
}
export const input = (
<editor>
<block>
one
<cursor />
</block>
</editor>
)
export const output = cloneDeep(input)