Ensure correct param order in fp.zip.

This commit is contained in:
John-David Dalton
2015-11-11 23:43:44 -08:00
parent c1b7679cac
commit be3afcf668
2 changed files with 13 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ module.exports = {
'matchesProperty': true,
'random': true,
'range': true,
'zip': true,
'zipObject': true
}
};

View File

@@ -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() {