Commit eea7cf7e authored by Thibaut Frain's avatar Thibaut Frain

Ensure sinon spy is always restored

parent a90c429c
...@@ -423,10 +423,12 @@ ...@@ -423,10 +423,12 @@
stop(); stop();
renderJS.declareGadgetKlass(url) renderJS.declareGadgetKlass(url)
.always(function () { .then(function () {
start();
equal(spy.args[0][1], url); equal(spy.args[0][1], url);
})
.always(function () {
spy.restore(); spy.restore();
start();
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment