summaryrefslogtreecommitdiff
path: root/test/html/simplify.tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/html/simplify.tests.js')
-rw-r--r--test/html/simplify.tests.js7
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;
+ });
+}