remove not needed spaces (#5495)

* remove not usefull spaces

* increase timeout

* increase timeout

* fix
This commit is contained in:
Eugenio Romano
2020-02-23 17:00:16 +00:00
committed by GitHub
parent 9e0e2bdfa6
commit 2d0b571875
302 changed files with 378 additions and 1245 deletions

View File

@@ -202,5 +202,4 @@ describe('ContentMetadataCardComponent', () => {
component.ngOnChanges({ displayAspect });
expect(component.expanded).toBeTruthy();
});
});

View File

@@ -123,6 +123,5 @@ describe('ContentMetadataConfigFactory', () => {
expect(config).toEqual(jasmine.any(LayoutOrientedConfigService));
}));
});
});
});
});

View File

@@ -126,8 +126,7 @@ describe('ContentMetaDataService', () => {
expect(classesApi.getClass).toHaveBeenCalledTimes(1);
expect(classesApi.getClass).toHaveBeenCalledWith('exif_exif');
});
});
});
describe('LayoutOriented preset', () => {
@@ -244,6 +243,5 @@ describe('ContentMetaDataService', () => {
expect(classesApi.getClass).toHaveBeenCalledTimes(1);
expect(classesApi.getClass).toHaveBeenCalledWith('cm_content');
});
});
});
});

View File

@@ -215,5 +215,4 @@ describe('ContentNodeDialogService', () => {
});
});
});
});

View File

@@ -113,8 +113,7 @@ describe('ContentNodeSelectorDialogComponent', () => {
expect(documentList).not.toBeNull('Document list should be shown');
expect(documentList.componentInstance.imageResolver).toBe(data.imageResolver);
});
});
});
describe('Cancel button', () => {
@@ -156,7 +155,5 @@ describe('ContentNodeSelectorDialogComponent', () => {
const actionButton = fixture.debugElement.query(By.css('[data-automation-id="content-node-selector-actions-choose"]'));
expect(actionButton.nativeElement.disabled).toBeFalsy();
});
});
});
});

View File

@@ -162,5 +162,4 @@ describe('Confirm Dialog Component', () => {
expect(thirdOptionElement.nativeElement.innerText).toBe('YES ALL');
});
});
});

View File

@@ -301,7 +301,5 @@ describe('FolderDialogComponent', () => {
component.submit();
});
});
});
});
});

View File

@@ -61,5 +61,4 @@ describe('ContentColumnList', () => {
expect(result).toBeFalsy();
expect(documentList.actions.push).not.toHaveBeenCalled();
});
});

View File

@@ -249,8 +249,7 @@ describe('ContentAction', () => {
expect(action.getSystemHandler('unknown', 'name')).toBeNull();
expect(folderActions.getHandler).not.toHaveBeenCalled();
expect(documentActions.getHandler).not.toHaveBeenCalled();
});
});
it('should wire model with custom event handler', async(() => {
const action = new ContentActionComponent(actionList, documentActions, folderActions);

View File

@@ -66,5 +66,4 @@ describe('ContentColumnList', () => {
expect(result).toBeFalsy();
expect(documentList.actions.push).not.toHaveBeenCalled();
});
});

View File

@@ -78,5 +78,4 @@ describe('ContentColumn', () => {
column = new ContentColumnComponent(null, logService);
expect(column.register()).toBeFalsy();
});
});

View File

@@ -156,8 +156,7 @@ describe('DocumentList', () => {
documentList.executeContentAction(node, action);
expect(action.handler).toHaveBeenCalledWith(node, documentList, undefined);
});
});
it('should call action handler with node and permission', () => {
const node = new FileNode();
@@ -336,8 +335,7 @@ describe('DocumentList', () => {
expect(actions.length).toBe(1);
expect(actions[0].title).toEqual('FileAction');
expect(actions[0].disabled).toBe(true);
});
});
it('should not display hidden content actions', () => {
documentList.actions = [
@@ -421,8 +419,7 @@ describe('DocumentList', () => {
expect(actions.length).toBe(1);
expect(actions[0].title).toEqual('FileAction');
expect(actions[0].disabled).toBeFalsy();
});
});
it('should disable the action if there is no permission for the folder and disableWithNoPermission true', () => {
const documentMenu = new ContentActionModel({
@@ -442,8 +439,7 @@ describe('DocumentList', () => {
expect(actions.length).toBe(1);
expect(actions[0].title).toEqual('FolderAction');
expect(actions[0].disabled).toBe(true);
});
});
it('should not disable the action if there is the right permission for the file', () => {
const documentMenu = new ContentActionModel({
@@ -707,8 +703,7 @@ describe('DocumentList', () => {
documentList.onNodeClick(null);
expect(documentList.loadFolder).not.toHaveBeenCalled();
});
});
it('should display folder content only on folder node click', () => {
expect(documentList.navigate).toBe(true);

View File

@@ -518,7 +518,5 @@ describe('ShareDataTableAdapter', () => {
expect(row.isDropTarget).toBeFalsy();
});
});
});
});

View File

@@ -117,8 +117,7 @@ describe('DocumentActionsService', () => {
const file = new FileNode();
service.getHandler('delete')(file);
});
});
it('should call the error on the returned Observable if there are no permissions', (done) => {
spyOn(documentListService, 'deleteNode').and.returnValue(of(true));
@@ -230,6 +229,5 @@ describe('DocumentActionsService', () => {
const fileWithPermission: any = file;
fileWithPermission.entry.allowableOperations = [permission];
service.getHandler('delete')(fileWithPermission, target, permission);
});
});
});

View File

@@ -103,8 +103,7 @@ describe('FolderActionsService', () => {
const folder = new FolderNode();
service.getHandler('delete')(folder);
});
});
it('should delete the folder node if there is the delete permission', () => {
spyOn(documentListService, 'deleteNode').and.callFake(() => {
@@ -164,8 +163,7 @@ describe('FolderActionsService', () => {
done();
}
});
});
});
it('should delete the folder node if there is the delete and others permission ', () => {
spyOn(documentListService, 'deleteNode').and.callFake(() => {

View File

@@ -109,5 +109,4 @@ describe('NodeActionsService', () => {
expect(error).toBe('FAKE-KO');
});
}));
});

View File

@@ -204,5 +204,4 @@ describe('AddPermissionPanelComponent', () => {
expect(element.querySelector('#result_option_0 .mat-list-text').innerHTML).not.toEqual(element.querySelector('#result_option_1 .mat-list-text').innerHTML);
});
}));
});

View File

@@ -125,5 +125,4 @@ describe('AddPermissionComponent', () => {
addButton.click();
});
});
});

View File

@@ -110,5 +110,4 @@ describe('InheritPermissionDirective', () => {
expect(spyUpdateNode).not.toHaveBeenCalled();
});
}));
});

View File

@@ -187,7 +187,5 @@ describe('PermissionDisplayComponent', () => {
});
});
}));
});
});
});

View File

@@ -117,6 +117,5 @@ describe('NodePermissionDialogService', () => {
done();
});
});
});
});
});

View File

@@ -193,5 +193,4 @@ describe('NodePermissionService', () => {
expect(errorMessage).toBe('PERMISSION_MANAGER.ERROR.DUPLICATE-PERMISSION');
});
}));
});

View File

@@ -115,5 +115,4 @@ describe('SearchCheckListComponent', () => {
expect(component.context.update).toHaveBeenCalled();
expect(component.context.queryFragments[component.id]).toBe('');
});
});

View File

@@ -66,5 +66,4 @@ describe('SearchChipListComponent', () => {
expect(component.searchFilter.unselectFacetBucket).toHaveBeenCalledWith(selectedBucket1.field, selectedBucket1.bucket);
});
});

View File

@@ -168,8 +168,7 @@ describe('SearchControlComponent', () => {
const attr = element.querySelector('#adf-control-input').getAttribute('autocomplete');
expect(attr).toBe('off');
}));
});
});
describe('autocomplete list', () => {
@@ -336,8 +335,7 @@ describe('SearchControlComponent', () => {
done();
});
});
});
});
describe('option click', () => {

View File

@@ -151,5 +151,4 @@ describe('SearchDateRangeComponent', () => {
expect(context.update).toHaveBeenCalled();
});
});
});

View File

@@ -196,5 +196,4 @@ describe('SearchFilterList', () => {
expect(list.filterText).toBe('');
});
});

View File

@@ -127,5 +127,4 @@ describe('SearchSliderComponent', () => {
expect(context.queryFragments['slider']).toBe('');
expect(context.update).toHaveBeenCalled();
});
});

View File

@@ -84,5 +84,4 @@ describe('SearchTextComponent', () => {
expect(component.value).toBe('');
expect(component.context.queryFragments[component.id]).toBe('');
});
});

View File

@@ -40,5 +40,4 @@ describe('Search term validator', () => {
const control = new FormControl('a ._-?b', SearchTermValidator.minAlphanumericChars(3));
expect(control.valid).toBe(false);
});
});

View File

@@ -475,8 +475,7 @@ describe('SearchQueryBuilder', () => {
expect(compiled.facetIntervals.intervals[1].label).toEqual(noSpacesLabel.configValue);
expect(compiled.facetIntervals.intervals[0].sets[0].label).toEqual(spacesLabelForSet.requestCompatibleValue);
});
});
it('should build query with sorting', () => {
const config: SearchConfiguration = {
@@ -619,5 +618,4 @@ describe('SearchQueryBuilder', () => {
builder.execute();
});
});

View File

@@ -79,5 +79,4 @@ describe('TagService', () => {
});
});
});
});

View File

@@ -64,5 +64,4 @@ describe('TreeViewService', () => {
done();
});
});
});

View File

@@ -145,8 +145,7 @@ describe('UploadBase', () => {
done();
});
}));
});
});
describe('fileSize', () => {

View File

@@ -251,8 +251,7 @@ describe('VersionListComponent', () => {
component.downloadVersion('1.0');
expect(spyOnDownload).not.toHaveBeenCalled();
});
});
});
describe('Version restoring', () => {
@@ -489,5 +488,4 @@ describe('VersionListComponent', () => {
});
});
});
});

View File

@@ -134,6 +134,5 @@ describe('VersionManagerComponent', () => {
expect(component.uploadState).toEqual('open');
});
});
});
});