Skip to content

Commit dee9b98

Browse files
committed
make isDebouncerActive actually return a bool
1 parent 95a5ade commit dee9b98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit/utils.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@
6666
called++;
6767
};
6868

69+
assert(window.el1.isDebouncerActive('foo') === false);
6970
window.el1.debounce('foo', cb);
7071
window.el1.debounce('foo', cb);
7172
window.el1.debounce('foo', cb);
73+
assert(window.el1.isDebouncerActive('foo') === true);
7274

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

0 commit comments

Comments
 (0)