From 06cc13300efe79b591690b577a8b2094317ee551 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 25 Mar 2014 12:56:01 +0000 Subject: Add prettyPrint option --- tests/mammoth.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 564eb8c..a59ade5 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -87,4 +87,11 @@ describe('mammoth', function() { assert.equal(result.value, ''); }); }); + + test('newlines and indentation are used if prettyPrint is true', function() { + var docxPath = path.join(__dirname, "test-data/simple-list.docx"); + return mammoth.convertToHtml({path: docxPath}, {prettyPrint: true}).then(function(result) { + assert.equal(result.value, ''); + }); + }); }) -- cgit v1.2.3