mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Tweak _.throttle unit test pass more consistently.
Former-commit-id: 91063b5c6ae0c9beb2c86cc21153d75f060afef1
This commit is contained in:
@@ -1818,12 +1818,12 @@
|
|||||||
actual = counter + 2;
|
actual = counter + 2;
|
||||||
throttled();
|
throttled();
|
||||||
throttled();
|
throttled();
|
||||||
}, 64);
|
}, 128);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
equal(counter, actual);
|
equal(counter, actual);
|
||||||
QUnit.start();
|
QUnit.start();
|
||||||
}, 128);
|
}, 256);
|
||||||
|
|
||||||
ok(counter > 1);
|
ok(counter > 1);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user