aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-30 15:07:36 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-30 15:07:36 +0100
commitfd79511d68b970b980bd65bb6537df9642f3de3e (patch)
tree0f326531ca9b692e3e8cdbd94a0b25e92d91c872 /apps/files_sharing/tests
parent364dbe611d7f86b1e615d5894d11b08d531995ac (diff)
parent42091cecf9f96d8aa3fc5c2b5bda9156bae459b5 (diff)
downloadnextcloud-server-fd79511d68b970b980bd65bb6537df9642f3de3e.tar.gz
nextcloud-server-fd79511d68b970b980bd65bb6537df9642f3de3e.zip
Merge pull request #20688 from owncloud/publiclink-getdownloadurl-webdav
Fix public link getDownloadUrl to return Webdav public link
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/js/publicAppSpec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/tests/js/publicAppSpec.js b/apps/files_sharing/tests/js/publicAppSpec.js
index 1ea5f7ed1bc..74f008025e1 100644
--- a/apps/files_sharing/tests/js/publicAppSpec.js
+++ b/apps/files_sharing/tests/js/publicAppSpec.js
@@ -101,12 +101,12 @@ describe('OCA.Sharing.PublicApp tests', function() {
it('returns correct download URL for single files', function() {
expect(fileList.getDownloadUrl('some file.txt'))
- .toEqual(OC.webroot + '/index.php/s/sh4tok/download?path=%2Fsubdir&files=some%20file.txt');
- expect(fileList.getDownloadUrl('some file.txt', '/anotherpath/abc'))
- .toEqual(OC.webroot + '/index.php/s/sh4tok/download?path=%2Fanotherpath%2Fabc&files=some%20file.txt');
+ .toEqual('/owncloud/public.php/webdav/subdir/some file.txt');
+ expect(fileList.getDownloadUrl('some file.txt', '/another path/abc'))
+ .toEqual('/owncloud/public.php/webdav/another path/abc/some file.txt');
fileList.changeDirectory('/');
expect(fileList.getDownloadUrl('some file.txt'))
- .toEqual(OC.webroot + '/index.php/s/sh4tok/download?path=%2F&files=some%20file.txt');
+ .toEqual('/owncloud/public.php/webdav/some file.txt');
});
it('returns correct download URL for multiple files', function() {
expect(fileList.getDownloadUrl(['a b c.txt', 'd e f.txt']))