aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/fileactionsmenuSpec.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-09 07:44:26 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-09 13:53:59 +0200
commit9af69ca2a5ed74acefdaedad6d189bdfd9e61e0e (patch)
treec755177c3886de1498010820b9a547a5314c8d41 /apps/files/tests/js/fileactionsmenuSpec.js
parent8b38b601e5bd07559bb86d38132be31820c41627 (diff)
downloadnextcloud-server-9af69ca2a5ed74acefdaedad6d189bdfd9e61e0e.tar.gz
nextcloud-server-9af69ca2a5ed74acefdaedad6d189bdfd9e61e0e.zip
Fix usage of deprecated OC.webroot
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files/tests/js/fileactionsmenuSpec.js')
-rw-r--r--apps/files/tests/js/fileactionsmenuSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/tests/js/fileactionsmenuSpec.js b/apps/files/tests/js/fileactionsmenuSpec.js
index c678d166153..f171f2848f8 100644
--- a/apps/files/tests/js/fileactionsmenuSpec.js
+++ b/apps/files/tests/js/fileactionsmenuSpec.js
@@ -281,7 +281,7 @@ describe('OCA.Files.FileActionsMenu tests', function() {
expect(redirectStub.calledOnce).toEqual(true);
expect(redirectStub.getCall(0).args[0]).toContain(
- OC.webroot +
+ OC.getRootPath() +
'/remote.php/webdav/subdir/testName.txt'
);
redirectStub.restore();
@@ -315,7 +315,7 @@ describe('OCA.Files.FileActionsMenu tests', function() {
expect(redirectStub.calledOnce).toEqual(true);
expect(redirectStub.getCall(0).args[0]).toContain(
- OC.webroot + '/remote.php/webdav/anotherpath/there/testName.txt'
+ OC.getRootPath() + '/remote.php/webdav/anotherpath/there/testName.txt'
);
redirectStub.restore();
});