Merge pull request #1962 from aadijoshi/patch-1
Set fake timers before calling throttle
This commit is contained in:
commit
f1da3ee136
1 changed files with 1 additions and 1 deletions
|
@ -7,8 +7,8 @@ describe("throttle(f, 1000)", function() {
|
|||
}
|
||||
|
||||
before(function() {
|
||||
f1000 = throttle(f, 1000);
|
||||
this.clock = sinon.useFakeTimers();
|
||||
f1000 = throttle(f, 1000);
|
||||
});
|
||||
|
||||
it("the first call runs now", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue