mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 10:14:02 +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
21 lines
364 B
TypeScript
21 lines
364 B
TypeScript
/** @jsx jsx */
|
|
import { Editor } from 'slate'
|
|
import { jsx } from '../..'
|
|
import { cloneDeep } from 'lodash'
|
|
|
|
export const run = editor => {
|
|
editor.insertBreak()
|
|
}
|
|
export const input = (
|
|
<editor>
|
|
<block>
|
|
<block>
|
|
on
|
|
<cursor />e
|
|
</block>
|
|
<block>two</block>
|
|
</block>
|
|
</editor>
|
|
)
|
|
export const output = cloneDeep(input)
|