From f5e1cbb69b1aae679f8629fe13d0c49778b181d0 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 18 Apr 2013 20:12:51 +0100 Subject: Emit warnings if paragraph style is not recognised --- tests/mammoth.tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/mammoth.tests.js') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 49bc02f..d8235ff 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -18,7 +18,8 @@ describe('mammoth', function() { var docxPath = path.join(__dirname, "test-data/single-paragraph.docx"); var converter = new mammoth.Converter(); return converter.convertToHtml({path: docxPath}).then(function(result) { - assert.equal("

Walking on imported air

", result.value); + assert.equal(result.value, "

Walking on imported air

"); + assert.deepEqual(result.messages, []); }); }); -- cgit v1.2.3