(extensions: AnyExtension[], content: JSONContent)
| 8 | })); |
| 9 | |
| 10 | function createEditor(extensions: AnyExtension[], content: JSONContent) { |
| 11 | const editor = new Editor({ |
| 12 | extensions, |
| 13 | content, |
| 14 | }); |
| 15 | // appendTransaction only runs when a transaction is dispatched, |
| 16 | // not on initial state creation, so we trigger one here. |
| 17 | editor.view.dispatch(editor.state.tr); |
| 18 | return editor; |
| 19 | } |
| 20 | |
| 21 | describe('TrailingNode', () => { |
| 22 | let editor: Editor; |
no test coverage detected