mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-14 12:47:49 +00:00
Fix istanbul report in travis.yml and tweak async tests.
This commit is contained in:
@@ -66,7 +66,7 @@ before_install:
|
|||||||
- "[ $MAKE != false ] && mkdir ./node_modules/lodash-cli/node_modules && cd ./node_modules/lodash-cli/node_modules/ && ln -s ../../../ ./lodash && cd ../ && npm i . && cd ../../ || true"
|
- "[ $MAKE != false ] && mkdir ./node_modules/lodash-cli/node_modules && cd ./node_modules/lodash-cli/node_modules/ && ln -s ../../../ ./lodash && cd ../ && npm i . && cd ../../ || true"
|
||||||
- "[ $MAKE != false ] && node ./node_modules/lodash-cli/bin/lodash $BUILD -o ./dist/lodash.$BUILD.js || true"
|
- "[ $MAKE != false ] && node ./node_modules/lodash-cli/bin/lodash $BUILD -o ./dist/lodash.$BUILD.js || true"
|
||||||
script:
|
script:
|
||||||
- "[ $BIN == 'istanbul' ] && $BIN cover ./test/test.js || true"
|
- "[ $BIN == 'istanbul' ] && $BIN cover -x \"**/vendor/**\" ./test/test.js -- ./dist/lodash.js || true"
|
||||||
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || cd ./test"
|
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || cd ./test"
|
||||||
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.js"
|
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.js"
|
||||||
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.min.js"
|
- "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) && true || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.min.js"
|
||||||
|
|||||||
@@ -1459,7 +1459,7 @@
|
|||||||
equal(counts[1], 2);
|
equal(counts[1], 2);
|
||||||
|
|
||||||
QUnit.start();
|
QUnit.start();
|
||||||
}, 256);
|
}, 512);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(7);
|
skipTest(7);
|
||||||
@@ -1647,7 +1647,7 @@
|
|||||||
asyncTest('should delay `func` execution', 2, function() {
|
asyncTest('should delay `func` execution', 2, function() {
|
||||||
if (!(isRhino && isModularize)) {
|
if (!(isRhino && isModularize)) {
|
||||||
var pass = false;
|
var pass = false;
|
||||||
_.delay(function(){ pass = true; }, 100);
|
_.delay(function(){ pass = true; }, 128);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
ok(!pass);
|
ok(!pass);
|
||||||
@@ -1656,7 +1656,7 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
ok(pass);
|
ok(pass);
|
||||||
QUnit.start();
|
QUnit.start();
|
||||||
}, 256);
|
}, 512);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(2);
|
skipTest(2);
|
||||||
@@ -7041,7 +7041,7 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
throttled();
|
throttled();
|
||||||
throttled();
|
throttled();
|
||||||
}, 100);
|
}, 96);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
ok(count > 1);
|
ok(count > 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user