aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/document-to-html.tests.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js
index 4587602..a18c4f5 100644
--- a/test/document-to-html.tests.js
+++ b/test/document-to-html.tests.js
@@ -655,12 +655,18 @@ test('breaks can be mapped using style mappings', function() {
{
from: documentMatchers.pageBreak,
to: htmlPaths.topLevelElement("hr")
+ },
+ {
+ from: documentMatchers.lineBreak,
+ to: htmlPaths.topLevelElement("br", {class: "line-break"})
}
]
});
- return converter.convertToHtml(documents.pageBreak).then(function(result) {
- assert.equal(result.value, "<hr />");
+ var run = documents.run([documents.pageBreak, documents.lineBreak]);
+
+ return converter.convertToHtml(run).then(function(result) {
+ assert.equal(result.value, '<hr /><br class="line-break" />');
});
});