mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Remove unneeded flatMap lazy chaining tests.
This commit is contained in:
19
test/test.js
19
test/test.js
@@ -5806,25 +5806,6 @@
|
||||
var object = { 'length': [1, 2] };
|
||||
assert.deepEqual(func(object, identity), [1, 2]);
|
||||
});
|
||||
|
||||
QUnit.test('`_.' + methodName + '` should work in a lazy sequence', function(assert) {
|
||||
assert.expect(2);
|
||||
|
||||
if (!isNpm) {
|
||||
var largeArray = lodashStable.range(LARGE_ARRAY_SIZE),
|
||||
smallArray = array;
|
||||
|
||||
lodashStable.times(2, function(index) {
|
||||
var array = index ? largeArray : smallArray,
|
||||
actual = _(array).filter(isEven)[methodName](duplicate).take(2).value();
|
||||
|
||||
assert.deepEqual(actual, _.take(func(_.filter(array, isEven), duplicate), 2));
|
||||
});
|
||||
}
|
||||
else {
|
||||
skipAssert(assert, 2);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user