Removed obsolete OC.Router stubs in specHelper

remotes/origin/ldap_group_count
Vincent Petry 13 years ago
parent 33b798c3d6
commit 6de370b64c
  1. 10
      core/js/tests/specHelper.js

@ -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();

Loading…
Cancel
Save