diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-06-11 15:38:04 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-06-11 15:38:04 +0100 |
| commit | f9b2d0c27fa9c3407e24dda32301c4f566af8d26 (patch) | |
| tree | 9962e2bfe7565b77480b445e4c8103e40d637161 /tests/document-to-html.tests.js | |
| parent | 230dbf291430de43888c9909ac70051d51c44f6b (diff) | |
Generate links back to main body
Diffstat (limited to 'tests/document-to-html.tests.js')
| -rw-r--r-- | tests/document-to-html.tests.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index 51ee625..cf6fa5b 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -206,7 +206,7 @@ describe('DocumentConverter', function() { generateUniquifier: function() { return 42; } }); return converter.convertToHtml(footnoteReference).then(function(result) { - assert.equal(result.value, '<sup><a href="#footnote-42-4">[1]</a></sup>'); + assert.equal(result.value, '<sup><a href="#footnote-42-4" id="footnote-ref-42-4">[1]</a></sup>'); }); }); @@ -233,8 +233,8 @@ describe('DocumentConverter', function() { generateUniquifier: function() { return 42; } }); return converter.convertToHtml(document).then(function(result) { - var expectedOutput = '<p>Knock knock<sup><a href="#footnote-42-4">[1]</a></sup></p>' + - '<ol><li id="footnote-42-4"><p>Who\'s there?</p></li></ol>'; + var expectedOutput = '<p>Knock knock<sup><a href="#footnote-42-4" id="footnote-ref-42-4">[1]</a></sup></p>' + + '<ol><li id="footnote-42-4"><p>Who\'s there?</p> <a href="#footnote-ref-42-4">↑</a></li></ol>'; assert.equal(result.value, expectedOutput); }); }); |
