From 6a8e978fd784beedf8f7823691c7b430ecd04d98 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 9 Oct 2016 22:32:20 -0700 Subject: [PATCH] Remove unneeded `_.isPlainObject` test. --- test/test.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/test/test.js b/test/test.js index c66a0eee5..82613a3f1 100644 --- a/test/test.js +++ b/test/test.js @@ -11375,20 +11375,9 @@ }); QUnit.test('should return `true` for objects with a `valueOf` property', function(assert) { - assert.expect(2); + assert.expect(1); assert.strictEqual(_.isPlainObject({ 'valueOf': 0 }), true); - - if (element) { - var valueOf = element.valueOf; - element.valueOf = 0; - - assert.strictEqual(_.isPlainObject(element), false); - element.valueOf = valueOf; - } - else { - skipAssert(assert); - } }); QUnit.test('should return `false` for objects with a custom `[[Prototype]]`', function(assert) {