diff --git a/test/mammoth.tests.js b/test/mammoth.tests.js index 3b1726e96..93a4f161c 100644 --- a/test/mammoth.tests.js +++ b/test/mammoth.tests.js @@ -496,6 +496,13 @@ test('extractRawText can use .docx files represented by a Buffer', function() { }); }); +test('can read strict format', function() { + var docxPath = path.join(__dirname, "test-data/strict-format.docx"); + return mammoth.convertToHtml({path: docxPath}).then(function(result) { + assert.equal(result.value, "

Test

"); + assert.deepEqual(result.messages, []); + }); +}); test('should throw error if file is not a valid docx document', function() { var docxPath = path.join(__dirname, "test-data/empty.zip"); diff --git a/test/test-data/strict-format.docx b/test/test-data/strict-format.docx new file mode 100644 index 000000000..449572092 Binary files /dev/null and b/test/test-data/strict-format.docx differ