mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-09 08:46:35 +02:00
* 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
19 lines
327 B
TypeScript
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)
|