diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-01-19 23:05:45 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-01-19 23:05:45 +0000 |
| commit | 965bd9513da033b9804af8ec29c7fa609a84512c (patch) | |
| tree | 28027622b24a00bb44fd4a1e9c91462493d78989 /tests/document-to-html.tests.js | |
| parent | 58cae6030e51481ffb462e52ab6aeb479e0a705d (diff) | |
Add support for endnotes
Diffstat (limited to 'tests/document-to-html.tests.js')
| -rw-r--r-- | tests/document-to-html.tests.js | 10 |
1 files changed, 6 insertions, 4 deletions
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([ |
