From 9ec874d8a6f9ebc08f89115d7e2d43247d6de4ad Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 3 Feb 2014 21:32:02 -0800 Subject: [PATCH] Add `_.isEqual` test for being used as a callback for `_.every`. --- test/test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test.js b/test/test.js index 9ef71108a..697528bd1 100644 --- a/test/test.js +++ b/test/test.js @@ -4226,6 +4226,11 @@ strictEqual(actual, false); }); + test('should work when used as `callback` for `_.every`', 1, function() { + var actual = _.every([1, 1, 1], _.partial(_.isEqual, 1)); + ok(actual); + }); + test('should treat objects created by `Object.create(null)` like any other plain object', 2, function() { function Foo() { this.a = 1; } Foo.prototype.constructor = null;