(text: string)
| 93 | } |
| 94 | |
| 95 | function createText(text: string): TestText { |
| 96 | const node: TestText = { |
| 97 | id: nodeId++, |
| 98 | type: TestNodeTypes.TEXT, |
| 99 | text, |
| 100 | parentNode: null, |
| 101 | } |
| 102 | logNodeOp({ |
| 103 | type: NodeOpTypes.CREATE, |
| 104 | nodeType: TestNodeTypes.TEXT, |
| 105 | targetNode: node, |
| 106 | text, |
| 107 | }) |
| 108 | // avoid test nodes from being observed |
| 109 | markRaw(node) |
| 110 | return node |
| 111 | } |
| 112 | |
| 113 | function createComment(text: string): TestComment { |
| 114 | const node: TestComment = { |
no test coverage detected