From b5768bced10c6dafe8bc621c6ef01aa0bd9d975c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 7 Jul 2016 20:25:41 +0100 Subject: Store children in thunks when generating HTML nodes --- test/html/simplify.tests.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/html') 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; + }); +} -- cgit v1.2.3