diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-06-14 12:57:55 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-06-14 12:57:55 +0100 |
| commit | 7fd0b913c41926a745331e26e779d6ee33e70ae0 (patch) | |
| tree | ffcf9ac9619bb509152f35a4163b7bfd0b579e99 /tests/mammoth.tests.js | |
| parent | aaabb8c8d6d3f0f61064d906ea86342a87bb0c3f (diff) | |
Add basic support for text boxes
Diffstat (limited to 'tests/mammoth.tests.js')
| -rw-r--r-- | tests/mammoth.tests.js | 8 |
1 files changed, 8 insertions, 0 deletions
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 = '<p>Datum plane</p>'; + 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) { |
