aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/document-xml-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-08-30 11:02:15 +0100
committerMichael Williamson <mike@zwobble.org>2014-08-30 11:02:15 +0100
commit1869372fc7840e19dd73fb606c4ba7633d607951 (patch)
tree35e84ed4627af5c732045a3beba80817d422f8ae /tests/docx/document-xml-reader.tests.js
parent38d53dbb6b45671702b9090e513036796f2ea2ea (diff)
Simplify footnote test slightly
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");