From 58cae6030e51481ffb462e52ab6aeb479e0a705d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 19 Jan 2015 22:48:32 +0000 Subject: Operate over a more generic notion of note --- tests/docx/document-xml-reader.tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/docx/document-xml-reader.tests.js') 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"); }); -- cgit v1.2.3