diff --git a/tests/tests.js b/tests/tests.js index a9ae20aa7..a5f780664 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -3698,7 +3698,7 @@ exports.defineAutoTests = function () { var img = new Image(); // eslint-disable-line no-undef img.onerror = function (err) { - expect(err).not.toBeDefined(); + expect(err).withContext(err.toString()).not.toBeDefined(); done(); }; img.onload = function () {