From 174dc90dc6e13cc3e5a3a89d08f7e651541a9056 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Aug 2016 20:06:48 +0100 Subject: Include error on the error message, rather than just the stack --- test/document-to-html.tests.js | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js index 59eba49..6283b1a 100644 --- a/test/document-to-html.tests.js +++ b/test/document-to-html.tests.js @@ -609,6 +609,7 @@ test('when custom image handler throws error then error is stored in error messa var message = result.messages[0]; assert.equal("error", message.type); assert.equal("Failed to convert image", message.message); + assert.equal(error, message.error); }); }); -- cgit v1.2.3