mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Add _.zipObject test for extra values.
This commit is contained in:
@@ -1506,7 +1506,7 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('lodash.createCallback');
|
||||
QUnit.module('lodash.callback');
|
||||
|
||||
(function() {
|
||||
test('should work with functions created by `_.partial` and `_.partialRight`', 2, function() {
|
||||
@@ -8650,6 +8650,10 @@
|
||||
deepEqual(actual, object);
|
||||
});
|
||||
|
||||
test('should ignore extra `values`', 1, function() {
|
||||
deepEqual(_.zipObject(['a'], [1, 2]), { 'a': 1 });
|
||||
});
|
||||
|
||||
test('should accept a two dimensional array', 1, function() {
|
||||
var actual = _.zipObject(array);
|
||||
deepEqual(actual, object);
|
||||
|
||||
Reference in New Issue
Block a user