From dee9b981a8f268e6088ccd774f88783f36aa9bc0 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Mon, 17 Aug 2015 13:23:41 -0700 Subject: [PATCH] make isDebouncerActive actually return a bool --- test/unit/utils.html | 2 ++ 1 file changed, 2 insertions(+) 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');