Procházet zdrojové kódy

Fix public link download button

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/v12.0.0beta1
Vincent Petry před 7 roky
rodič
revize
78ee125c34
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4
    0
      apps/files_sharing/tests/js/publicAppSpec.js

+ 4
- 0
apps/files_sharing/tests/js/publicAppSpec.js Zobrazit soubor

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

Načítá se…
Zrušit
Uložit