diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-06-09 22:32:30 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-06-20 12:06:19 +0100 |
| commit | ac3981df81148fad21c32b22496ecc145ad36e98 (patch) | |
| tree | cfba69d2fedb0cacc7d544749f199bd339a1c6ad /tests/html/ast.tests.js | |
| parent | 8617c85c8626354fff63eeaeb775402715fe63a4 (diff) | |
Use simpler structure for HTML without fragments
Diffstat (limited to 'tests/html/ast.tests.js')
| -rw-r--r-- | tests/html/ast.tests.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/html/ast.tests.js b/tests/html/ast.tests.js deleted file mode 100644 index 04db5f7..0000000 --- a/tests/html/ast.tests.js +++ /dev/null @@ -1,20 +0,0 @@ -var assert = require("assert"); - -var test = require("../testing").test; -var html = require("../../lib/html"); - - -describe("HTML ast", function() { - test("nested fragments are collapsed", function() { - assert.deepEqual( - html.fragment([html.text("Hello")]), - html.fragment([html.fragment([html.text("Hello")])])); - }); - - test("children of elements are collapsed", function() { - assert.deepEqual( - html.freshElement("p", {}, [html.text("Hello")]), - html.freshElement("p", {}, [html.fragment([html.text("Hello")])])); - }); -}); - |
