aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-28 18:01:35 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-28 18:01:35 +0000
commitcdfeaf4b15e7161a0eae4bcb3df868d709db10ad (patch)
tree66786031e5c5e357cd2436610046b4470cc79b03 /test
parentbb3d113828218fa29dae16cae6f2ff5e05e48564 (diff)
Only convert line breaks to br elements
Diffstat (limited to 'test')
-rw-r--r--test/document-to-html.tests.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js
index 6134dd0..d21badb 100644
--- a/test/document-to-html.tests.js
+++ b/test/document-to-html.tests.js
@@ -442,6 +442,14 @@ test('line break is converted to <br>', function() {
});
});
+test('breaks that are not line breaks are ignored', function() {
+ var converter = new DocumentConverter();
+
+ return converter.convertToHtml(documents.pageBreak).then(function(result) {
+ assert.equal(result.value, "");
+ });
+});
+
test('footnote reference is converted to superscript intra-page link', function() {
var footnoteReference = new documents.NoteReference({
noteType: "footnote",