From 17577bdd715c65e71d81f762b54b8c27f60f4535 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 17 Jun 2015 14:33:43 +0100 Subject: Support underlines in style map --- 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 e016fe1..93fc966 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -217,6 +217,13 @@ describe('mammoth', function() { }); }); + test('underline can be configured with style mapping', function() { + var docxPath = path.join(__dirname, "test-data/underline.docx"); + return mammoth.convertToHtml({path: docxPath}, {styleMap: "u => em"}).then(function(result) { + assert.equal(result.value, '

The Sunset Tree

'); + }); + }); + 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