mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Coerce to integer and set default value for chunk size parameter (#4413)
* Enable chunk module tests * Coerce to integer and set default value for chunk size param
This commit is contained in:
committed by
John-David Dalton
parent
37cd5dc97a
commit
5b4dc54465
@@ -42,9 +42,4 @@ describe('chunk', function() {
|
||||
it('should coerce `size` to an integer', function() {
|
||||
assert.deepStrictEqual(chunk(array, array.length / 4), [[0], [1], [2], [3], [4], [5]]);
|
||||
});
|
||||
|
||||
it('should work as an iteratee for methods like `_.map`', function() {
|
||||
var actual = lodashStable.map([[1, 2], [3, 4]], chunk);
|
||||
assert.deepStrictEqual(actual, [[[1], [2]], [[3], [4]]]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user