diff --git a/test/svg.js b/test/svg.js index 1ee0fa1..e7f515b 100644 --- a/test/svg.js +++ b/test/svg.js @@ -19,3 +19,28 @@ test('svg mixed with html', function (t) { t.equal(vdom.create(tree).toString(), expected) t.end() }) + +test('svg mixed with html and close / self-closing tags', function (t) { + var expected = `
+

test

+ + + + + + + +
` + var tree = hx`
+

test

+ + + + + + + +
` + t.equal(vdom.create(tree).toString(), expected) + t.end() +})