aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-06-10 14:58:09 +0100
committerMichael Williamson <mike@zwobble.org>2014-06-10 14:58:09 +0100
commit8be57d82ffae15aa753ca57ce19c581bf0d6b897 (patch)
tree926707ffc6133094dadae5b46c146ae77ce9be06 /tests
parente580cc50fac9440b24854af99f5d0b72594ac0a5 (diff)
Add hard-coded footnote reference to HTML
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({