aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-10-13 21:26:50 +0100
committerMichael Williamson <mike@zwobble.org>2015-10-13 21:26:50 +0100
commit2fb7a36230b167aac99fe8d43959833bd3b244dd (patch)
tree18409fc8a2f843e64774e3c32e89e0d5aa32281c /tests
parent5f67ade998b13797f95ad6ccc2749b7697c8a661 (diff)
Add element node
Diffstat (limited to 'tests')
-rw-r--r--tests/html/ast.tests.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/html/ast.tests.js b/tests/html/ast.tests.js
index 1920e63..c851377 100644
--- a/tests/html/ast.tests.js
+++ b/tests/html/ast.tests.js
@@ -10,5 +10,11 @@ describe("HTML ast", function() {
html.fragment([html.fragment([html.text("Hello")])]),
html.fragment([html.text("Hello")]));
});
+
+ test("children of elements are collapsed", function() {
+ assert.deepEqual(
+ html.element("p", {}, [html.fragment([html.text("Hello")])]),
+ html.element("p", {}, [html.text("Hello")]));
+ });
});