aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-08-05 16:27:31 +0100
committerMichael Williamson <mike@zwobble.org>2014-08-05 16:27:31 +0100
commitdbd1d403662781619444de9026ad11680dbb7b95 (patch)
tree174b12e5ec03e525f2ca20f3821b18ebc7527931 /tests
parent2e932c95e310c0192f09ae9944455c40dd1f9110 (diff)
Convert line breaks to <br>
Diffstat (limited to 'tests')
-rw-r--r--tests/document-to-html.tests.js9
1 files changed, 9 insertions, 0 deletions
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 <br>', function() {
+ var lineBreak = new documents.LineBreak();
+ var converter = new DocumentConverter();
+
+ return converter.convertToHtml(lineBreak).then(function(result) {
+ assert.equal(result.value, "<br />");
+ });
+ });
+
test('footnote reference is converted to superscript intra-page link', function() {
var footnoteReference = new documents.FootnoteReference({
footnoteId: "4",