mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Update async _.throttle test.
This commit is contained in:
@@ -7020,7 +7020,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
test('should clear timeout when `func` is called', 1, function() {
|
||||
asyncTest('should clear timeout when `func` is called', 1, function() {
|
||||
if (!isModularize) {
|
||||
var callCount = 0,
|
||||
dateCount = 0;
|
||||
@@ -7043,7 +7043,10 @@
|
||||
throttled();
|
||||
throttled();
|
||||
|
||||
equal(callCount, 2);
|
||||
setTimeout(function() {
|
||||
equal(callCount, 2);
|
||||
QUnit.start();
|
||||
}, 64);
|
||||
}
|
||||
else {
|
||||
skipTest();
|
||||
@@ -8352,7 +8355,7 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.config.asyncRetries = 5;
|
||||
QUnit.config.asyncRetries = 10;
|
||||
|
||||
if (!document) {
|
||||
QUnit.config.noglobals = true;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<script src="./asset/qunit-extras.js"></script>
|
||||
<script src="./asset/test-ui.js"></script>
|
||||
<script>
|
||||
QUnit.config.asyncRetries = 5;
|
||||
QUnit.config.asyncRetries = 10;
|
||||
QUnit.config.hidepassed = true;
|
||||
|
||||
// excuse tests we intentionally fail or those with problems
|
||||
|
||||
Reference in New Issue
Block a user