wip: trying to make tests work

This commit is contained in:
Evan You
2018-11-02 07:43:28 +09:00
parent d70b7d6dd5
commit ba571cda61
7 changed files with 53 additions and 45 deletions

View File

@@ -63,6 +63,9 @@ export function dumpOps(): NodeOp[] {
}
function createElement(tag: string): TestElement {
if (nodeId === 5) {
throw new Error('foo')
}
const node: TestElement = {
id: nodeId++,
type: NodeTypes.ELEMENT,