From dbd1d403662781619444de9026ad11680dbb7b95 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 5 Aug 2014 16:27:31 +0100 Subject: Convert line breaks to
--- tests/document-to-html.tests.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index 4bdc43c..a1bed41 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -255,6 +255,15 @@ describe('DocumentConverter', function() { }); }); + test('line break is converted to
', function() { + var lineBreak = new documents.LineBreak(); + var converter = new DocumentConverter(); + + return converter.convertToHtml(lineBreak).then(function(result) { + assert.equal(result.value, "
"); + }); + }); + test('footnote reference is converted to superscript intra-page link', function() { var footnoteReference = new documents.FootnoteReference({ footnoteId: "4", -- cgit v1.2.3