From c098d25076380da5adbcfa7a4e1378e4fdf347d4 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 11 Jun 2014 09:42:57 +0100 Subject: Wrap footnote references in square brackets --- tests/document-to-html.tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/document-to-html.tests.js') 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, '1'); + assert.equal(result.value, '[1]'); }); }); @@ -229,7 +229,7 @@ describe('DocumentConverter', function() { var converter = new DocumentConverter(); return converter.convertToHtml(document).then(function(result) { - var expectedOutput = '

Knock knock1

' + + var expectedOutput = '

Knock knock[1]

' + '
  1. Who\'s there?

'; assert.equal(result.value, expectedOutput); }); -- cgit v1.2.3