mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
remove not needed spaces (#5495)
* remove not usefull spaces * increase timeout * increase timeout * fix
This commit is contained in:
@@ -202,5 +202,4 @@ describe('ContentMetadataCardComponent', () => {
|
||||
component.ngOnChanges({ displayAspect });
|
||||
expect(component.expanded).toBeTruthy();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -123,6 +123,5 @@ describe('ContentMetadataConfigFactory', () => {
|
||||
expect(config).toEqual(jasmine.any(LayoutOrientedConfigService));
|
||||
}));
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -215,5 +215,4 @@ describe('ContentNodeDialogService', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -162,5 +162,4 @@ describe('Confirm Dialog Component', () => {
|
||||
expect(thirdOptionElement.nativeElement.innerText).toBe('YES ALL');
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -301,7 +301,5 @@ describe('FolderDialogComponent', () => {
|
||||
component.submit();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -61,5 +61,4 @@ describe('ContentColumnList', () => {
|
||||
expect(result).toBeFalsy();
|
||||
expect(documentList.actions.push).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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);
|
||||
|
@@ -66,5 +66,4 @@ describe('ContentColumnList', () => {
|
||||
expect(result).toBeFalsy();
|
||||
expect(documentList.actions.push).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -78,5 +78,4 @@ describe('ContentColumn', () => {
|
||||
column = new ContentColumnComponent(null, logService);
|
||||
expect(column.register()).toBeFalsy();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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);
|
||||
|
@@ -518,7 +518,5 @@ describe('ShareDataTableAdapter', () => {
|
||||
|
||||
expect(row.isDropTarget).toBeFalsy();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -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);
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -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(() => {
|
||||
|
@@ -109,5 +109,4 @@ describe('NodeActionsService', () => {
|
||||
expect(error).toBe('FAKE-KO');
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
|
@@ -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);
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
|
@@ -125,5 +125,4 @@ describe('AddPermissionComponent', () => {
|
||||
addButton.click();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -110,5 +110,4 @@ describe('InheritPermissionDirective', () => {
|
||||
expect(spyUpdateNode).not.toHaveBeenCalled();
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
|
@@ -187,7 +187,5 @@ describe('PermissionDisplayComponent', () => {
|
||||
});
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -117,6 +117,5 @@ describe('NodePermissionDialogService', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -193,5 +193,4 @@ describe('NodePermissionService', () => {
|
||||
expect(errorMessage).toBe('PERMISSION_MANAGER.ERROR.DUPLICATE-PERMISSION');
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
|
@@ -115,5 +115,4 @@ describe('SearchCheckListComponent', () => {
|
||||
expect(component.context.update).toHaveBeenCalled();
|
||||
expect(component.context.queryFragments[component.id]).toBe('');
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -66,5 +66,4 @@ describe('SearchChipListComponent', () => {
|
||||
|
||||
expect(component.searchFilter.unselectFacetBucket).toHaveBeenCalledWith(selectedBucket1.field, selectedBucket1.bucket);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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', () => {
|
||||
|
||||
|
@@ -151,5 +151,4 @@ describe('SearchDateRangeComponent', () => {
|
||||
expect(context.update).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -196,5 +196,4 @@ describe('SearchFilterList', () => {
|
||||
|
||||
expect(list.filterText).toBe('');
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -127,5 +127,4 @@ describe('SearchSliderComponent', () => {
|
||||
expect(context.queryFragments['slider']).toBe('');
|
||||
expect(context.update).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -84,5 +84,4 @@ describe('SearchTextComponent', () => {
|
||||
expect(component.value).toBe('');
|
||||
expect(component.context.queryFragments[component.id]).toBe('');
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -40,5 +40,4 @@ describe('Search term validator', () => {
|
||||
const control = new FormControl('a ._-?b', SearchTermValidator.minAlphanumericChars(3));
|
||||
expect(control.valid).toBe(false);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -79,5 +79,4 @@ describe('TagService', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -64,5 +64,4 @@ describe('TreeViewService', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -145,8 +145,7 @@ describe('UploadBase', () => {
|
||||
done();
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('fileSize', () => {
|
||||
|
||||
|
@@ -251,8 +251,7 @@ describe('VersionListComponent', () => {
|
||||
component.downloadVersion('1.0');
|
||||
expect(spyOnDownload).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('Version restoring', () => {
|
||||
|
||||
@@ -489,5 +488,4 @@ describe('VersionListComponent', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -134,6 +134,5 @@ describe('VersionManagerComponent', () => {
|
||||
|
||||
expect(component.uploadState).toEqual('open');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user