diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-09 07:44:26 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-09 13:53:59 +0200 |
commit | 9af69ca2a5ed74acefdaedad6d189bdfd9e61e0e (patch) | |
tree | c755177c3886de1498010820b9a547a5314c8d41 /apps/files_trashbin/tests/js | |
parent | 8b38b601e5bd07559bb86d38132be31820c41627 (diff) | |
download | nextcloud-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_trashbin/tests/js')
-rw-r--r-- | apps/files_trashbin/tests/js/filelistSpec.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_trashbin/tests/js/filelistSpec.js b/apps/files_trashbin/tests/js/filelistSpec.js index e9b519ad1fe..e650a2f2d28 100644 --- a/apps/files_trashbin/tests/js/filelistSpec.js +++ b/apps/files_trashbin/tests/js/filelistSpec.js @@ -158,10 +158,10 @@ describe('OCA.Trashbin.FileList tests', function () { expect($crumbs.length).toEqual(3); expect($crumbs.eq(1).find('a').text()).toEqual('Home'); expect($crumbs.eq(1).find('a').attr('href')) - .toEqual(OC.webroot + '/index.php/apps/files?view=trashbin&dir=/'); + .toEqual(OC.getRootPath() + '/index.php/apps/files?view=trashbin&dir=/'); expect($crumbs.eq(2).find('a').text()).toEqual('subdir'); expect($crumbs.eq(2).find('a').attr('href')) - .toEqual(OC.webroot + '/index.php/apps/files?view=trashbin&dir=/subdir'); + .toEqual(OC.getRootPath() + '/index.php/apps/files?view=trashbin&dir=/subdir'); }); }); describe('Rendering rows', function () { @@ -326,7 +326,7 @@ describe('OCA.Trashbin.FileList tests', function () { expect(fakeServer.requests.length).toEqual(files.length); for (var i = 0; i < files.length; i++) { request = fakeServer.requests[i]; - expect(request.url).toEqual(OC.webroot + '/remote.php/dav/trashbin/user/trash/' + files[i]); + expect(request.url).toEqual(OC.getRootPath() + '/remote.php/dav/trashbin/user/trash/' + files[i]); request.respond(200); } return promise.then(function () { @@ -345,7 +345,7 @@ describe('OCA.Trashbin.FileList tests', function () { }); expect(fakeServer.requests.length).toEqual(1); request = fakeServer.requests[0]; - expect(request.url).toEqual(OC.webroot + '/remote.php/dav/trashbin/user/trash'); + expect(request.url).toEqual(OC.getRootPath() + '/remote.php/dav/trashbin/user/trash'); request.respond(200); return promise.then(function () { expect(fileList.isEmpty).toEqual(true); @@ -363,8 +363,8 @@ describe('OCA.Trashbin.FileList tests', function () { expect(fakeServer.requests.length).toEqual(files.length); for (var i = 0; i < files.length; i++) { request = fakeServer.requests[i]; - expect(request.url).toEqual(OC.webroot + '/remote.php/dav/trashbin/user/trash/' + files[i]); - expect(request.requestHeaders.Destination).toEqual(OC.webroot + '/remote.php/dav/trashbin/user/restore/' + files[i]); + expect(request.url).toEqual(OC.getRootPath() + '/remote.php/dav/trashbin/user/trash/' + files[i]); + expect(request.requestHeaders.Destination).toEqual(OC.getRootPath() + '/remote.php/dav/trashbin/user/restore/' + files[i]); request.respond(200); } return promise.then(function() { @@ -385,8 +385,8 @@ describe('OCA.Trashbin.FileList tests', function () { expect(fakeServer.requests.length).toEqual(files.length); for (var i = 0; i < files.length; i++) { request = fakeServer.requests[i]; - expect(request.url).toEqual(OC.webroot + '/remote.php/dav/trashbin/user/trash/' + files[i]); - expect(request.requestHeaders.Destination).toEqual(OC.webroot + '/remote.php/dav/trashbin/user/restore/' + files[i]); + expect(request.url).toEqual(OC.getRootPath() + '/remote.php/dav/trashbin/user/trash/' + files[i]); + expect(request.requestHeaders.Destination).toEqual(OC.getRootPath() + '/remote.php/dav/trashbin/user/restore/' + files[i]); request.respond(200); } return promise.then(function() { |