From 965bd9513da033b9804af8ec29c7fa609a84512c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 19 Jan 2015 23:05:45 +0000 Subject: Add support for endnotes --- tests/docx/document-xml-reader.tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 778bf06..86c0fcb 100644 --- a/tests/docx/document-xml-reader.tests.js +++ b/tests/docx/document-xml-reader.tests.js @@ -361,7 +361,7 @@ describe("convertXmlToDocument: ", function() { var documentXml = new XmlElement("w:document", {}, [bodyXml]); var document = convertXmlToDocumentValue({root: documentXml}, {footnotes: footnotes}); - var footnote = document.notes.findFootnoteById("4"); + var footnote = document.notes.resolve({noteType: "footnote", noteId: "4"}); assert.deepEqual(footnote.id, "4"); assert.deepEqual(footnote.body[0].type, "paragraph"); }); -- cgit v1.2.3