diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-07 20:25:41 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-07 20:25:41 +0100 |
| commit | b5768bced10c6dafe8bc621c6ef01aa0bd9d975c (patch) | |
| tree | f6cd37ba5dad336f72d6a7e9c688eb177de0c23f /test/html | |
| parent | 3047481420f215fb60b0380fa187975948ba54be (diff) | |
Store children in thunks when generating HTML nodes
Diffstat (limited to 'test/html')
| -rw-r--r-- | test/html/simplify.tests.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/html/simplify.tests.js b/test/html/simplify.tests.js index ccc5610..1058fe9 100644 --- a/test/html/simplify.tests.js +++ b/test/html/simplify.tests.js @@ -8,7 +8,6 @@ var htmlPaths = require("../../lib/html-paths"); var nonFreshElement = html.nonFreshElement; var text = html.text; -var pathToNodes = html.pathToNodes; describe("simplify", function() { test("empty text nodes are removed", function() { @@ -113,3 +112,9 @@ function simplifyNode(node) { function concat() { return _.flatten(arguments, true); } + +function pathToNodes(path, nodes) { + return path.wrap(function() { + return nodes; + }); +} |
