()
| 2 | import { NodeApi } from './node'; |
| 3 | |
| 4 | const createNestedEditor = () => |
| 5 | createEditor({ |
| 6 | children: [ |
| 7 | { type: 'p', children: [{ text: 'one' }, { text: 'two' }] }, |
| 8 | { |
| 9 | type: 'blockquote', |
| 10 | children: [{ type: 'p', children: [{ text: 'three' }] }], |
| 11 | }, |
| 12 | ] as any, |
| 13 | }); |
| 14 | |
| 15 | const mapEntries = (entries: Iterable<[any, number[]]>) => |
| 16 | Array.from(entries).map(([node, path]) => [NodeApi.string(node), path]); |
no test coverage detected
searching dependent graphs…