aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-06-10 15:30:53 +0100
committerMichael Williamson <mike@zwobble.org>2014-06-10 15:30:53 +0100
commit88b21ba0d0989a5c4f142f5971d33b069a7dfb26 (patch)
tree33fac80be93195dbf3f8efb10bec5c07d563ca18 /tests
parent1fb926a39b9b63513a2d226957ee1b11846f18be (diff)
Number footnotes in html conversion
Diffstat (limited to 'tests')
-rw-r--r--tests/document-to-html.tests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js
index c80a921..f030a72 100644
--- a/tests/document-to-html.tests.js
+++ b/tests/document-to-html.tests.js
@@ -199,12 +199,12 @@ describe('DocumentConverter', function() {
test('footnote reference is converted to superscript intra-page link', function() {
var footnoteReference = new documents.FootnoteReference({
- footnoteId: 1,
+ footnoteId: 4,
body: paragraphOfText("Who's there?")
});
var converter = new DocumentConverter();
return converter.convertToHtml(footnoteReference).then(function(result) {
- assert.equal(result.value, '<sup><a href="#footnote-1">1</a></sup>');
+ assert.equal(result.value, '<sup><a href="#footnote-4">1</a></sup>');
});
});