diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-10-13 21:24:38 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-10-13 21:24:38 +0100 |
| commit | 5f67ade998b13797f95ad6ccc2749b7697c8a661 (patch) | |
| tree | 3188a5a60c2e94ec80d236006a9f70411e85e256 /tests | |
| parent | 4163a1ec773f0695baa41000050745df37f789e0 (diff) | |
Add HTML text and fragment nodes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/html/ast.tests.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/html/ast.tests.js b/tests/html/ast.tests.js new file mode 100644 index 0000000..1920e63 --- /dev/null +++ b/tests/html/ast.tests.js @@ -0,0 +1,14 @@ +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.fragment([html.text("Hello")])]), + html.fragment([html.text("Hello")])); + }); +}); + |
