Skip to content

Commit

Permalink
Merge pull request kolodny#17 from staramir/master
Browse files Browse the repository at this point in the history
Minor fix for debounce test
  • Loading branch information
kolodny committed Jun 16, 2015
2 parents 8dde75e + bf52222 commit 2c9f078
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions debounce/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ describe('debounce', function() {
it('waits for the threshold to pass before executing', function(done) {
var now = new Date();
var debounced = debounce(function() {
assert(new Date() - now > 10);
assert(new Date() - now >= 10);
done();
called++;
}, 10);
debounced();
});
Expand Down

0 comments on commit 2c9f078

Please sign in to comment.