diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-03 19:57:37 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-03 19:57:37 +0100 |
| commit | c225bc3f3dbe5c001e8fec119d8f8dadf96ec95b (patch) | |
| tree | 22e6da4fb93dae0cdbfa99cb6a6a508116a1b5ee /test/document-to-html.tests.js | |
| parent | ba731d3c8a9408b9d33deb63e0492b54298169c5 (diff) | |
Return root element directly when reading XML
Diffstat (limited to 'test/document-to-html.tests.js')
| -rw-r--r-- | test/document-to-html.tests.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js index 10ea265..0b4f905 100644 --- a/test/document-to-html.tests.js +++ b/test/document-to-html.tests.js @@ -513,8 +513,7 @@ describe('DocumentConverter', function() { .then(function(result) { return xml.readString(result.value); }) - .then(function(htmlImageElementDocument) { - var htmlImageElement = htmlImageElementDocument.root; + .then(function(htmlImageElement) { assert.equal(htmlImageElement.attributes.alt, "It's a hat"); }); }); |
