Merge pull request #3946 from nextcloud/downstream-27263

Fix public link download button (unit test only)
This commit is contained in:
Roeland Jago Douma 2017-03-20 10:23:30 +01:00 committed by GitHub
commit c4b6ff0bab
1 changed files with 4 additions and 0 deletions

View File

@ -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;