Skip to content
Snippets Groups Projects
Commit c4b6ff0b authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #3946 from nextcloud/downstream-27263

Fix public link download button (unit test only)
parents 8b670b41 78ee125c
No related branches found
No related tags found
No related merge requests found
...@@ -125,6 +125,10 @@ describe('OCA.Sharing.PublicApp tests', function() { ...@@ -125,6 +125,10 @@ describe('OCA.Sharing.PublicApp tests', function() {
expect(fileList.getAjaxUrl('test', {a:1, b:'x y'})) 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'); .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() { describe('Upload Url', function() {
var fileList; var fileList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment