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/mammoth.tests.js | |
| parent | 511f6787dd943fc8a9321bd0e3464eb1e0eef11b (diff) | |
Add support for strikethrough
Diffstat (limited to 'tests/mammoth.tests.js')
| -rw-r--r-- | tests/mammoth.tests.js | 7 |
1 files changed, 7 insertions, 0 deletions
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 <s> by default', function() { + var docxPath = path.join(__dirname, "test-data/strikethrough.docx"); + return mammoth.convertToHtml({path: docxPath}).then(function(result) { + assert.equal(result.value, "<p><s>Today's Special: Salmon</s> Sold out</p>"); + }); + }); + 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) { |
