wip: fix one test

This commit is contained in:
Evan You
2018-11-02 14:09:00 +09:00
parent ba571cda61
commit f79f0e658b
6 changed files with 94 additions and 90 deletions

View File

@@ -30,14 +30,18 @@ function patchOps(nodeOps: NodeOps) {
return original(...args)
}
}
} else {
} else if (!/parent|next|query/.test(key)) {
nodeOps[key] = (...args: any[]) => {
if (currentOps) {
currentOps.push([original, ...args.map(evaluate)])
} else {
original(...args)
return original(...args)
}
}
} else {
nodeOps[key] = (node: any) => {
return original(evaluate(node))
}
}
})
}