From b4f6cde20322037fc4b1fbeb9267e2c20539cf62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 20 Sep 2016 18:43:02 -0400 Subject: [PATCH] Tests: Handle null values when comparing items. --- test/helpers.js | 2 ++ 1 file changed, 2 insertions(+) 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,