From 966283dd6ddafb6481090f0a0f3dceadf175bafe Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 19 Apr 2014 11:53:40 -0700 Subject: [PATCH] Minor test cleanup. [ci skip] --- test/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index f912a1f66..58d7cce1f 100644 --- a/test/test.js +++ b/test/test.js @@ -2440,6 +2440,7 @@ test('`_.' + methodName + '` should not assign inherited `source` properties', 1, function() { function Foo() {} Foo.prototype = { 'a': 1 }; + deepEqual(func({}, new Foo), {}); }); @@ -3289,10 +3290,9 @@ test('`_.' + methodName + '` skips the prototype property of functions (test in Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1)', 2, function() { function Foo() {} - Foo.prototype.c = 3; - Foo.a = 1; Foo.b = 2; + Foo.prototype.c = 3; var expected = { 'a': 1, 'b': 2 }; deepEqual(func({}, Foo), expected); @@ -4266,6 +4266,7 @@ test('skips the prototype property of functions (test in Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1)', 2, function() { function Foo() {} Foo.prototype.a = 1; + strictEqual(_.isEmpty(Foo), true); Foo.prototype = { 'a': 1 };