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/mammoth.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/mammoth.tests.js') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 93fc966..cdc14e5 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -224,6 +224,13 @@ describe('mammoth', function() { }); }); + test('strikethrough is converted to by default', function() { + var docxPath = path.join(__dirname, "test-data/strikethrough.docx"); + return mammoth.convertToHtml({path: docxPath}).then(function(result) { + assert.equal(result.value, "

Today's Special: Salmon Sold out

"); + }); + }); + test('indentation is used if prettyPrint is true', function() { var docxPath = path.join(__dirname, "test-data/single-paragraph.docx"); return mammoth.convertToHtml({path: docxPath}, {prettyPrint: true}).then(function(result) { -- cgit v1.2.3