From 63546974b87e3ce7167a3077db33b49e27006197 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 16 Aug 2015 14:37:55 +0100 Subject: Write immediate children of root --- tests/xml/writer.tests.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/xml') diff --git a/tests/xml/writer.tests.js b/tests/xml/writer.tests.js index f2408e0..5ffecc2 100644 --- a/tests/xml/writer.tests.js +++ b/tests/xml/writer.tests.js @@ -9,6 +9,11 @@ describe('xml.writer', function() { test('writing empty root element writes out xml declaration and empty root element', function() { assertXmlString(new Element("root"), ''); }); + + test('can write empty child elements', function() { + assertXmlString(new Element("root", {}, [new Element("album"), new Element("single")]), + ''); + }); }); -- cgit v1.2.3