Skip to content

Commit

Permalink
Prevent false negatives for _.throttle tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
braddunbar committed Aug 7, 2013
1 parent dc5a3fa commit de60b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ $(document).ready(function() {

var time = new Date;
while (new Date - time < 350) throttledIncr();
ok(counter === 3);
ok(counter <= 3);

_.delay(function() {
equal(counter, 4);
ok(counter <= 4);
start();
}, 200);
});
Expand Down

0 comments on commit de60b9a

Please sign in to comment.