mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Add _.ary test case for multiple applied arys.
This commit is contained in:
@@ -1054,6 +1054,13 @@
|
||||
assert.deepEqual(capped('a'), ['a']);
|
||||
});
|
||||
|
||||
QUnit.test('should use the existing `ary` if smaller', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var capped = _.ary(_.ary(fn, 1), 2);
|
||||
assert.deepEqual(capped('a', 'b', 'c'), ['a']);
|
||||
});
|
||||
|
||||
QUnit.test('should work as an iteratee for methods like `_.map`', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user