Add _.zipObject test for extra keys.

This commit is contained in:
John-David Dalton
2015-12-28 00:03:04 -06:00
parent ed23b6b89d
commit e5730af949

View File

@@ -21899,6 +21899,12 @@
assert.deepEqual(_.zipObject(['a'], [1, 2]), { 'a': 1 });
});
QUnit.test('should assign `undefined` values for extra `keys`', function(assert) {
assert.expect(1);
assert.deepEqual(_.zipObject(['a', 'b'], [1]), { 'a': 1, 'b': undefined });
});
QUnit.test('should support deep paths', function(assert) {
assert.expect(2);