From dc53892204989de1788081624c65062dc283480a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 17 Jun 2015 15:32:53 +0100 Subject: Add support for strikethrough --- tests/document-to-html.tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/document-to-html.tests.js') 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 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, "Hello."); + }); + }); + test('style mapping for underline runs does not close parent elements', function() { var run = runOfText("Hello.", {isUnderline: true, isBold: true}); var converter = new DocumentConverter({ -- cgit v1.2.3