Skip to content

Commit

Permalink
make isDebouncerActive actually return a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemac53 committed Feb 4, 2016
1 parent 95a5ade commit dee9b98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@
called++;
};

assert(window.el1.isDebouncerActive('foo') === false);
window.el1.debounce('foo', cb);
window.el1.debounce('foo', cb);
window.el1.debounce('foo', cb);
assert(window.el1.isDebouncerActive('foo') === true);

setTimeout(function() {
assert.equal(called, 1, 'debounce should be called exactly once');
Expand Down

0 comments on commit dee9b98

Please sign in to comment.