mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4457] StorageService should be independent of AppConfigService (#4712)
* [ADF-4457] StorageService should be independent of AppConfigService * [ADF-4457] Fix e2e tests * [ADF-4457] Fix e2e tests * [ADF-4457] Improve storage service workflow * Fix linting * Fix unit tests * Fix e2e test * Add missing class to constructor * Fix e2e test * Rebase branch * Improve unit test * fix test
This commit is contained in:
committed by
Eugenio Romano
parent
90c403ae9e
commit
5c07d5b3e6
@@ -102,7 +102,7 @@ describe('DownloadZipDialogComponent', () => {
|
||||
|
||||
it('should call cancelDownload when CANCEL button is clicked', () => {
|
||||
fixture.detectChanges();
|
||||
spyOn(component, 'cancelDownload').and.returnValue('');
|
||||
spyOn(component, 'cancelDownload');
|
||||
|
||||
const cancelButton: HTMLButtonElement = <HTMLButtonElement> element.querySelector('#cancel-button');
|
||||
cancelButton.click();
|
||||
@@ -118,7 +118,7 @@ describe('DownloadZipDialogComponent', () => {
|
||||
|
||||
it('should close dialog when download is completed', () => {
|
||||
component.download('fakeUrl', 'fileName');
|
||||
spyOn(component, 'cancelDownload').and.returnValue('');
|
||||
spyOn(component, 'cancelDownload');
|
||||
fixture.detectChanges();
|
||||
expect(dialogRef.close).toHaveBeenCalled();
|
||||
});
|
||||
@@ -134,7 +134,7 @@ describe('DownloadZipDialogComponent', () => {
|
||||
it('should interrupt download when cancel button is clicked', () => {
|
||||
spyOn(component, 'downloadZip');
|
||||
spyOn(component, 'download');
|
||||
spyOn(component, 'cancelDownload').and.returnValue('');
|
||||
spyOn(component, 'cancelDownload');
|
||||
|
||||
fixture.detectChanges();
|
||||
|
||||
|
Reference in New Issue
Block a user