mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Expand part of shortcut fusion test.
This commit is contained in:
@@ -2234,7 +2234,6 @@
|
||||
});
|
||||
|
||||
test('`_.' + methodName + '` should support shortcut fusion', 3, function() {
|
||||
if (!isNpm && WeakMap && _.support.funcNames) {
|
||||
var filterCount = 0,
|
||||
mapCount = 0;
|
||||
|
||||
@@ -2250,14 +2249,14 @@
|
||||
? func(partialMap, partialFilter, _.compact, partialTake)
|
||||
: func(partialTake, _.compact, partialFilter, partialMap);
|
||||
|
||||
var actual = combined(_.range(100));
|
||||
deepEqual(combined(_.range(100)), [4, 16]);
|
||||
|
||||
deepEqual(actual, [4, 16]);
|
||||
if (!isNpm && WeakMap && _.support.funcNames) {
|
||||
strictEqual(filterCount, 5, 'filterCount');
|
||||
strictEqual(mapCount, 5, 'mapCount');
|
||||
}
|
||||
else {
|
||||
skipTest(3);
|
||||
skipTest(2);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user