Remove unneeded _.isPlainObject test.

This commit is contained in:
John-David Dalton
2016-10-09 22:32:20 -07:00
parent aea509c230
commit 6a8e978fd7

View File

@@ -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) {