mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Add large array test for _.uniqBy and _.sortedUniqBy.
This commit is contained in:
13
test/test.js
13
test/test.js
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user