diff --git a/test/unit/utils.html b/test/unit/utils.html index 9ddb3c5017..02b19c3d90 100644 --- a/test/unit/utils.html +++ b/test/unit/utils.html @@ -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');