summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-01-24 19:28:00 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-01-24 19:28:52 +0100
commit9a92f9e7cc818fba3e9044717fb597a9eda07857 (patch)
treebe085981e388197714bdb42d427b9db18634821c /apps
parentfda0af42237c53bcc82e232f8af3f65d4d16be9f (diff)
downloadnextcloud-server-9a92f9e7cc818fba3e9044717fb597a9eda07857.tar.gz
nextcloud-server-9a92f9e7cc818fba3e9044717fb597a9eda07857.zip
fix(tests): Adjust legacy tests for nextcloud-router update
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps')
-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 59ac4bd7bbd..75c29db62d4 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();
});