diff options
author | Vincent Petry <pvince81@owncloud.com> | 2017-02-27 10:32:20 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-20 02:39:46 -0600 |
commit | 78ee125c346e466528d2685be513dcb95258611e (patch) | |
tree | 3b406224ed8f7975e97352c89e8748d4ac669471 /apps/files_sharing | |
parent | 528a903a7b23ea628e6ec2fc9a221821297c0bec (diff) | |
download | nextcloud-server-78ee125c346e466528d2685be513dcb95258611e.tar.gz nextcloud-server-78ee125c346e466528d2685be513dcb95258611e.zip |
Fix public link download button
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/tests/js/publicAppSpec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/js/publicAppSpec.js b/apps/files_sharing/tests/js/publicAppSpec.js index e8ec9899ecc..8ea339fd9de 100644 --- a/apps/files_sharing/tests/js/publicAppSpec.js +++ b/apps/files_sharing/tests/js/publicAppSpec.js @@ -125,6 +125,10 @@ describe('OCA.Sharing.PublicApp tests', function() { expect(fileList.getAjaxUrl('test', {a:1, b:'x y'})) .toEqual(OC.webroot + '/index.php/apps/files_sharing/ajax/test.php?a=1&b=x%20y&t=sh4tok'); }); + it('returns correct download URL for downloading everything', function() { + expect(fileList.getDownloadUrl()) + .toEqual(OC.webroot + '/index.php/s/sh4tok/download?path=%2Fsubdir'); + }); }); describe('Upload Url', function() { var fileList; |