From 74da5dfd4bffcd0e37d53686ba9bebdfe3d96004 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 15 Dec 2013 18:19:48 -0800 Subject: [PATCH] Keep code coverage up for `_.isElement`. --- test/test.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index 96ec1c3fb..0f6cb65a5 100644 --- a/test/test.js +++ b/test/test.js @@ -3549,10 +3549,12 @@ strictEqual(_.isElement({ 'nodeType': '001' }), false); }); - test('should use a stronger check in browsers', 1, function() { - var lodash = document ? _ : lodashBizarro; - if (lodash) { - strictEqual(lodash.isElement(new Element), false); + test('should use a stronger check in browsers', 2, function() { + var expected = !body; + strictEqual(_.isElement(new Element), expected); + + if (lodashBizarro) { + strictEqual(lodashBizarro.isElement(new Element), !expected); } else { skipTest();