diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-08-16 14:37:55 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-08-16 14:37:55 +0100 |
| commit | 63546974b87e3ce7167a3077db33b49e27006197 (patch) | |
| tree | 0f2cdea8b2e44d87490664c0d8afe265d10f650e /tests/xml | |
| parent | 82d14072f95eb6112f7617c5dae8817f35aa93ea (diff) | |
Write immediate children of root
Diffstat (limited to 'tests/xml')
| -rw-r--r-- | tests/xml/writer.tests.js | 5 |
1 files changed, 5 insertions, 0 deletions
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"), '<root/>'); }); + + test('can write empty child elements', function() { + assertXmlString(new Element("root", {}, [new Element("album"), new Element("single")]), + '<root><album/><single/></root>'); + }); }); |
