diff --git a/test/helpers.js b/test/helpers.js index a9742e9a..e6473a4a 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -243,6 +243,8 @@ var compareItem = function(actual, expected, message, options, properties) { options = options || {}; if (options.rasterize) { comparePixels(actual, expected, message, options); + } else if (!actual || !expected) { + QUnit.strictEqual(actual, expected, message); } else { if (options.cloned) QUnit.notStrictEqual(actual.id, expected.id,