aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/document-xml-reader.tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/docx/document-xml-reader.tests.js')
-rw-r--r--tests/docx/document-xml-reader.tests.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/docx/document-xml-reader.tests.js b/tests/docx/document-xml-reader.tests.js
index d021c3a..8371a82 100644
--- a/tests/docx/document-xml-reader.tests.js
+++ b/tests/docx/document-xml-reader.tests.js
@@ -341,9 +341,11 @@ describe("convertXmlToDocument: ", function() {
test("footnotes of document are read", function() {
var paragraphXml = new XmlElement("w:p", {}, []);
- var bodyXml = new XmlElement("w:body", {}, [paragraphXml]);
- var documentXml = new XmlElement("w:document", {}, [bodyXml]);
var footnotes = [{id: "4", body: [paragraphXml]}];
+
+ var bodyXml = new XmlElement("w:body", {}, []);
+ var documentXml = new XmlElement("w:document", {}, [bodyXml]);
+
var document = convertXmlToDocumentValue({root: documentXml}, {footnotes: footnotes});
var footnote = document.footnotes.findFootnoteById("4");
assert.deepEqual(footnote.id, "4");