diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-06-17 15:32:53 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-06-17 15:35:22 +0100 |
| commit | dc53892204989de1788081624c65062dc283480a (patch) | |
| tree | 5efcf80db1a80eb06f29d5c03cdeb97823f1085b /tests/document-to-html.tests.js | |
| parent | 511f6787dd943fc8a9321bd0e3464eb1e0eef11b (diff) | |
Add support for strikethrough
Diffstat (limited to 'tests/document-to-html.tests.js')
| -rw-r--r-- | tests/document-to-html.tests.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index 516f2fe..02079cd 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -202,6 +202,14 @@ describe('DocumentConverter', function() { }); }); + test('strikethrough runs are wrapped in <s> tags by default', function() { + var run = runOfText("Hello.", {isStrikethrough: true}); + var converter = new DocumentConverter(); + return converter.convertToHtml(run).then(function(result) { + assert.equal(result.value, "<s>Hello.</s>"); + }); + }); + test('style mapping for underline runs does not close parent elements', function() { var run = runOfText("Hello.", {isUnderline: true, isBold: true}); var converter = new DocumentConverter({ |
