aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-01-24 19:28:00 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-01-25 17:55:06 +0100
commit163d02e2a7eed591bfda554b22db7b006ef587e8 (patch)
tree31e487fe9856021dbcb5e8a8532d189077351161 /apps/files_sharing
parent9fb7d5bca7a592de08d096ce07997987ff2d86a0 (diff)
downloadnextcloud-server-163d02e2a7eed591bfda554b22db7b006ef587e8.tar.gz
nextcloud-server-163d02e2a7eed591bfda554b22db7b006ef587e8.zip
fix(tests): Adjust legacy tests for nextcloud-router update
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/js/publicAppSpec.js6
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();
});