mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Ensure correct param order in fp.zip.
This commit is contained in:
@@ -156,6 +156,7 @@ module.exports = {
|
||||
'matchesProperty': true,
|
||||
'random': true,
|
||||
'range': true,
|
||||
'zip': true,
|
||||
'zipObject': true
|
||||
}
|
||||
};
|
||||
|
||||
@@ -555,6 +555,18 @@ QUnit.module('fp.uniqBy');
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('fp.zip');
|
||||
|
||||
(function() {
|
||||
QUnit.test('should zip together two arrays', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
assert.deepEqual(fp.zip([1, 2], [3, 4]), [[1, 3], [2, 4]]);
|
||||
});
|
||||
}());
|
||||
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('fp.zipObject');
|
||||
|
||||
(function() {
|
||||
|
||||
Reference in New Issue
Block a user