From 1b79448ac282e98ce3b7174c768382e7fa8d04af Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 27 Jan 2014 20:00:47 -0800 Subject: [PATCH] Add `_.zipObject` test for extra `values`. --- test/test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 9ff87aa28..0dda97882 100644 --- a/test/test.js +++ b/test/test.js @@ -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);