]> source.dussan.org Git - nextcloud-server.git/commitdiff
Removed obsolete OC.Router stubs in specHelper
authorVincent Petry <pvince81@owncloud.com>
Wed, 5 Mar 2014 09:27:15 +0000 (10:27 +0100)
committerVincent Petry <pvince81@owncloud.com>
Wed, 5 Mar 2014 09:27:15 +0000 (10:27 +0100)
core/js/tests/specHelper.js

index 84c5e8f75bc3f15a430ad2ee890d5d321642be64..3ed4cb6c3b4e3e91ec3374aae9e90ee6abb5f4ff 100644 (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();