(vnode: VNode)
| 227 | } |
| 228 | |
| 229 | function commitTree(vnode: VNode) { |
| 230 | const allocator = createInstanceIdAllocator(1); |
| 231 | const committed = commitVNodeTree(null, vnode, { allocator }); |
| 232 | assert.equal(committed.ok, true, "commit should succeed"); |
| 233 | if (!committed.ok) { |
| 234 | assert.fail("commit should succeed"); |
| 235 | } |
| 236 | return committed.value.root; |
| 237 | } |
| 238 | |
| 239 | function renderBytes( |
| 240 | vnode: VNode, |
no test coverage detected