Add large array test for _.uniqBy and _.sortedUniqBy.

This commit is contained in:
John-David Dalton
2015-11-24 08:13:11 -08:00
parent 8f1f98b003
commit ee8a248086

View File

@@ -20979,6 +20979,19 @@
assert.deepEqual(actual, expected);
});
QUnit.test('should work with large arrays', function(assert) {
assert.expect(2);
var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, function() {
return [1, 2];
});
var actual = func(largeArray, String);
assert.deepEqual(actual, [[1, 2]]);
assert.strictEqual(actual[0], largeArray[0]);
});
QUnit.test('`_.' + methodName + '` should provide the correct `iteratee` arguments', function(assert) {
assert.expect(1);