Removed obsolete OC.Router stubs in specHelper

This commit is contained in:
Vincent Petry 2014-03-05 10:27:15 +01:00
parent 33b798c3d6
commit 6de370b64c
1 changed files with 0 additions and 10 deletions

View File

@ -86,19 +86,9 @@ window.oc_defaults = {};
// make it globally available, so that other tests can define
// custom responses
window.fakeServer = fakeServer;
OC.Router = {};
OC.Router.routes = [];
OC.Router.routes_request = {
state: sinon.stub().returns('resolved'),
done: sinon.stub()
};
});
afterEach(function() {
OC.Router.routes_request.state.reset();
OC.Router.routes_request.done.reset();
// uncomment this to log requests
// console.log(window.fakeServer.requests);
fakeServer.restore();