aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/document-to-html.tests.js8
1 files changed, 8 insertions, 0 deletions
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, '<sup><a href="#footnote-4">1</a></sup>');
+ });
+ });
+
test('images are written with data URIs', function() {
var imageBuffer = new Buffer("Not an image at all!");
var image = new documents.Image({