summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/js/publicAppSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/js/publicAppSpec.js')
-rw-r--r--apps/files_sharing/tests/js/publicAppSpec.js4
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;