From 4b679e95712b732d07be105f7067de34b41493ec Mon Sep 17 00:00:00 2001 From: Andrej T Date: Wed, 6 Jul 2016 14:16:09 +0200 Subject: results.error now also accepts string as arg; changed img test to expect error --- test/mammoth.tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/mammoth.tests.js b/test/mammoth.tests.js index 1a82014..622fcbb 100644 --- a/test/mammoth.tests.js +++ b/test/mammoth.tests.js @@ -197,7 +197,7 @@ describe('mammoth', function() { var buffer = fs.readFileSync(docxPath); return mammoth.convertToHtml({buffer: buffer}).then(function(result) { assert.equal(result.value, ''); - assert.deepEqual(result.messages, [results.warning("could not find external image 'tiny-picture.png', path of input document is unknown")]); + assert.equal(result.messages[0].message, results.error("could not find external image 'tiny-picture.png', path of input document is unknown").message); }); }); -- cgit v1.2.3