mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Avoid test fails for npm builds.
This commit is contained in:
10
test/test.js
10
test/test.js
@@ -4088,6 +4088,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should work in a lazy chain sequence with `drop`', 1, function() {
|
test('should work in a lazy chain sequence with `drop`', 1, function() {
|
||||||
|
if (!isNpm) {
|
||||||
var actual = _(array)
|
var actual = _(array)
|
||||||
.dropWhile(function(num) { return num == 1; })
|
.dropWhile(function(num) { return num == 1; })
|
||||||
.drop()
|
.drop()
|
||||||
@@ -4095,6 +4096,10 @@
|
|||||||
.value();
|
.value();
|
||||||
|
|
||||||
deepEqual(actual, [4]);
|
deepEqual(actual, [4]);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skipTest();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should provide the correct `predicate` arguments in a lazy chain sequence', 4, function() {
|
test('should provide the correct `predicate` arguments in a lazy chain sequence', 4, function() {
|
||||||
@@ -5032,6 +5037,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should work in a lazy chain sequence with `take`', 1, function() {
|
test('should work in a lazy chain sequence with `take`', 1, function() {
|
||||||
|
if (!isNpm) {
|
||||||
var actual = _(array)
|
var actual = _(array)
|
||||||
.takeWhile(function(num) { return num < 4; })
|
.takeWhile(function(num) { return num < 4; })
|
||||||
.take(2)
|
.take(2)
|
||||||
@@ -5039,6 +5045,10 @@
|
|||||||
.value();
|
.value();
|
||||||
|
|
||||||
deepEqual(actual, [1]);
|
deepEqual(actual, [1]);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skipTest();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should provide the correct `predicate` arguments in a lazy chain sequence', 4, function() {
|
test('should provide the correct `predicate` arguments in a lazy chain sequence', 4, function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user