Commit 656b1e56 authored by Tristan Cavelier's avatar Tristan Cavelier

fix source.now sinon.js error on jiotests.js

parent 46953d02
...@@ -160,12 +160,12 @@ objectifyDocumentArray = function (array) { ...@@ -160,12 +160,12 @@ objectifyDocumentArray = function (array) {
getLastJob = function (id) { getLastJob = function (id) {
return (localstorage.getItem("jio/job_array/"+id) || [undefined]).pop(); return (localstorage.getItem("jio/job_array/"+id) || [undefined]).pop();
}, },
generateTools = function (sinon) { generateTools = function (test_namespace) {
var o = {}; var o = {};
o.t = sinon; o.t = test_namespace;
o.server = o.t.sandbox.useFakeServer(); o.server = o.t.sandbox.useFakeServer();
o.clock = o.t.sandbox.useFakeTimers(); o.clock = sinon.useFakeTimers();
o.clock.tick(base_tick); o.clock.tick(base_tick);
o.spy = basicSpyFunction; o.spy = basicSpyFunction;
o.tick = basicTickFunction; o.tick = basicTickFunction;
......
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