mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +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() {
|
(function() {
|
||||||
test('should work with functions created by `_.partial` and `_.partialRight`', 2, function() {
|
test('should work with functions created by `_.partial` and `_.partialRight`', 2, function() {
|
||||||
@@ -8650,6 +8650,10 @@
|
|||||||
deepEqual(actual, object);
|
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() {
|
test('should accept a two dimensional array', 1, function() {
|
||||||
var actual = _.zipObject(array);
|
var actual = _.zipObject(array);
|
||||||
deepEqual(actual, object);
|
deepEqual(actual, object);
|
||||||
|
|||||||
Reference in New Issue
Block a user