diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-06-11 09:42:57 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-06-11 09:42:57 +0100 |
| commit | c098d25076380da5adbcfa7a4e1378e4fdf347d4 (patch) | |
| tree | 9a2cd34e4a87549a7811e3a1cec73c06eb5a7783 /tests/document-to-html.tests.js | |
| parent | fab4cbb2a2c87b9eb5c11cc91d8d0fbea6201ea8 (diff) | |
Wrap footnote references in square brackets
Diffstat (limited to 'tests/document-to-html.tests.js')
| -rw-r--r-- | tests/document-to-html.tests.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index da9879e..a8cf0ab 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -204,7 +204,7 @@ describe('DocumentConverter', function() { }); var converter = new DocumentConverter(); return converter.convertToHtml(footnoteReference).then(function(result) { - assert.equal(result.value, '<sup><a href="#footnote-4">1</a></sup>'); + assert.equal(result.value, '<sup><a href="#footnote-4">[1]</a></sup>'); }); }); @@ -229,7 +229,7 @@ describe('DocumentConverter', function() { var converter = new DocumentConverter(); return converter.convertToHtml(document).then(function(result) { - var expectedOutput = '<p>Knock knock<sup><a href="#footnote-4">1</a></sup></p>' + + var expectedOutput = '<p>Knock knock<sup><a href="#footnote-4">[1]</a></sup></p>' + '<ol><li id="footnote-4"><p>Who\'s there?</p></li></ol>'; assert.equal(result.value, expectedOutput); }); |
