Skip to content

Commit

Permalink
test(throttle): fix race condition test
Browse files Browse the repository at this point in the history
  • Loading branch information
steelsojka committed May 6, 2017
1 parent e67991a commit 7538ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/throttle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('throttle', () => {
setTimeout(() => {
expect(myClass.value).to.equal(20);
done();
}, 11);
}, 20);
});

it('should debounce the property getter', (done) => {
Expand All @@ -77,7 +77,7 @@ describe('throttle', () => {
setTimeout(() => {
expect(myClass.value).to.equal(2);
done();
}, 11);
}, 20);
});

it('should contain the cancel and flush methods', () => {
Expand Down

0 comments on commit 7538ec7

Please sign in to comment.