aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/document-xml-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-01-19 22:48:32 +0000
committerMichael Williamson <mike@zwobble.org>2015-01-19 22:48:32 +0000
commit58cae6030e51481ffb462e52ab6aeb479e0a705d (patch)
tree4e12f82c07c63e03812a4e5d09d0d61a007b3e2d /tests/docx/document-xml-reader.tests.js
parent83feedc21e7ba06625837d3c11461d9e8734bf6c (diff)
Operate over a more generic notion of note
Diffstat (limited to 'tests/docx/document-xml-reader.tests.js')
-rw-r--r--tests/docx/document-xml-reader.tests.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/docx/document-xml-reader.tests.js b/tests/docx/document-xml-reader.tests.js
index 175b3c4..778bf06 100644
--- a/tests/docx/document-xml-reader.tests.js
+++ b/tests/docx/document-xml-reader.tests.js
@@ -353,15 +353,15 @@ describe("readXmlElement: ", function() {
describe("convertXmlToDocument: ", function() {
- test("footnotes of document are read", function() {
+ test("notes of document are read", function() {
var paragraphXml = new XmlElement("w:p", {}, []);
- var footnotes = [{id: "4", body: [paragraphXml]}];
+ var footnotes = [{noteType: "footnote", 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");
+ var footnote = document.notes.findFootnoteById("4");
assert.deepEqual(footnote.id, "4");
assert.deepEqual(footnote.body[0].type, "paragraph");
});