From 8be57d82ffae15aa753ca57ce19c581bf0d6b897 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 10 Jun 2014 14:58:09 +0100 Subject: Add hard-coded footnote reference to HTML --- tests/document-to-html.tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index b9a8476..aae8499 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -197,6 +197,14 @@ describe('DocumentConverter', function() { }); }); + test('footnote reference is converted to superscript intra-page link', function() { + var tab = new documents.FootnoteReference({id: 4, body: paragraphOfText("Hello.")}); + var converter = new DocumentConverter(); + return converter.convertToHtml(tab).then(function(result) { + assert.equal(result.value, '1'); + }); + }); + test('images are written with data URIs', function() { var imageBuffer = new Buffer("Not an image at all!"); var image = new documents.Image({ -- cgit v1.2.3