From 7fd0b913c41926a745331e26e779d6ee33e70ae0 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 14 Jun 2015 12:57:55 +0100 Subject: Add basic support for text boxes --- tests/mammoth.tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/mammoth.tests.js') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 6395afd..f9571d2 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -195,6 +195,14 @@ describe('mammoth', function() { }); }); + test('textboxes are read', function() { + var docxPath = path.join(__dirname, "test-data/text-box.docx"); + return mammoth.convertToHtml({path: docxPath}).then(function(result) { + var expectedOutput = '

Datum plane

'; + assert.equal(result.value, expectedOutput); + }); + }); + 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