aboutsummaryrefslogtreecommitdiffstats
path: root/test/widgetsSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/widgetsSpec.js')
-rw-r--r--test/widgetsSpec.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index dd65b5bd..152b01f3 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -15,7 +15,9 @@ describe("input widget", function(){
afterEach(function(){
if (element) element.remove();
- expect(size(jqCache)).toEqual(0);
+ var oldCache = jqCache;
+ jqCache = {};
+ expect(size(oldCache)).toEqual(0);
});
it('should input-text auto init and handle keyup/change events', function(){