diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-12-05 19:24:00 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-12-05 19:24:00 +0000 |
| commit | a3a22525e85db9f9b576fa3b3e4210778d9d7603 (patch) | |
| tree | 9a683b4ee21beb70b135b316116873cc4cbc5643 /test/xml | |
| parent | 2fe97dd468faa0d89cd6069bd0ba3b08c38e362e (diff) | |
Revert "Handle XML documents that are missing a root element"
This reverts commit ae06a2bacfb74c88340e900e8a29336418936e9e.
Diffstat (limited to 'test/xml')
| -rw-r--r-- | test/xml/reader.tests.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/xml/reader.tests.js b/test/xml/reader.tests.js index 3515835..6b7d3a0 100644 --- a/test/xml/reader.tests.js +++ b/test/xml/reader.tests.js @@ -46,7 +46,7 @@ test('mapped namespaces URIs are translated using map', function() { var namespaceMap = { "word": "x" }; - + return xmlreader.readString('<w:body xmlns:w="word"/>', namespaceMap).then(function(result) { assert.deepEqual(result.name, "x:body"); }); @@ -83,11 +83,3 @@ test('error if XML is badly formed', function() { return 1; }); }); - -test("when document is missing root element then null is returned", function() { - var xmlString = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; - - return xmlreader.readString(xmlString).then(function(element) { - assert.strictEqual(element, null); - }); -}); |
