Commit eea7cf7e authored by Thibaut Frain's avatar Thibaut Frain

Ensure sinon spy is always restored

parent a90c429c
......@@ -423,10 +423,12 @@
stop();
renderJS.declareGadgetKlass(url)
.always(function () {
start();
.then(function () {
equal(spy.args[0][1], url);
})
.always(function () {
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