diff options
Diffstat (limited to 'apps/files_sharing/tests/js/publicAppSpec.js')
-rw-r--r-- | apps/files_sharing/tests/js/publicAppSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/js/publicAppSpec.js b/apps/files_sharing/tests/js/publicAppSpec.js index 229e57ac4ed..72a31088c6c 100644 --- a/apps/files_sharing/tests/js/publicAppSpec.js +++ b/apps/files_sharing/tests/js/publicAppSpec.js @@ -30,8 +30,8 @@ describe('OCA.Sharing.PublicApp tests', function() { var $preview; beforeEach(function() { - originalWebroot = OC.webroot; - OC.webroot = '/owncloud'; + originalWebroot = window._oc_webroot; + window._oc_webroot = '/owncloud'; protocolStub = sinon.stub(OC, 'getProtocol').returns('https'); hostStub = sinon.stub(OC, 'getHost').returns('example.com:9876'); @@ -45,7 +45,7 @@ describe('OCA.Sharing.PublicApp tests', function() { }); afterEach(function() { - OC.webroot = originalWebroot; + window._oc_webroot = originalWebroot; protocolStub.restore(); hostStub.restore(); }); |