aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r--test/unit/effects.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js
index 571fda031..7aff2242a 100644
--- a/test/unit/effects.js
+++ b/test/unit/effects.js
@@ -10,13 +10,15 @@ var oldRaf = window.requestAnimationFrame;
module("effects", {
setup: function() {
window.requestAnimationFrame = null;
- this.clock = sinon.useFakeTimers( 505877050 );
+ this.sandbox = sinon.sandbox.create();
+ this.clock = this.sandbox.useFakeTimers( 505877050 );
this._oldInterval = jQuery.fx.interval;
+ jQuery.fx.step = {};
jQuery.fx.interval = 10;
jQuery.now = Date.now;
},
teardown: function() {
- this.clock.restore();
+ this.sandbox.restore();
jQuery.now = Date.now;
jQuery.fx.stop();
jQuery.fx.interval = this._oldInterval;