mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Fix test fail.
This commit is contained in:
@@ -2243,14 +2243,11 @@
|
|||||||
expected = _.map(values, _.constant([]));
|
expected = _.map(values, _.constant([]));
|
||||||
|
|
||||||
var actual = _.map(values, function(arity) {
|
var actual = _.map(values, function(arity) {
|
||||||
var curried = _.curry(fn, arity);
|
return _.curry(fn, arity)();
|
||||||
return curried();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
deepEqual(actual, expected);
|
deepEqual(actual, expected);
|
||||||
|
deepEqual(_.curry(fn, '2')(1)(2), [1, 2]);
|
||||||
curried = _.curry(fn, '2');
|
|
||||||
deepEqual(curried(1)(2), [1, 2]);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should work with partialed methods', 2, function() {
|
test('should work with partialed methods', 2, function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user