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/document-to-html.tests.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/document-to-html.tests.js') diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index a5cf294..63b445d 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -285,8 +285,9 @@ describe('DocumentConverter', function() { }); test('footnote reference is converted to superscript intra-page link', function() { - var footnoteReference = new documents.FootnoteReference({ - footnoteId: "4" + var footnoteReference = new documents.NoteReference({ + noteType: "footnote", + noteId: "4" }); var converter = new DocumentConverter({ generateUniquifier: function() { return 42; } @@ -297,8 +298,9 @@ describe('DocumentConverter', function() { }); test('footnotes are included after the main body', function() { - var footnoteReference = new documents.FootnoteReference({ - footnoteId: "4" + var footnoteReference = new documents.NoteReference({ + noteType: "footnote", + noteId: "4" }); var document = new documents.Document( [new documents.Paragraph([ -- cgit v1.2.3