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:
@@ -73,6 +73,5 @@ describe('AppDetailsCloudComponent', () => {
|
||||
fixture.detectChanges();
|
||||
const app = fixture.nativeElement.querySelector('.mat-card');
|
||||
expect(app).toBeTruthy();
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -116,8 +116,7 @@ describe('AppListCloudComponent', () => {
|
||||
expect(errorSubtitle.innerText).toBe('ADF_CLOUD_TASK_LIST.APPS.ERROR.SUBTITLE');
|
||||
expect(getAppsSpy).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('Grid Layout ', () => {
|
||||
|
||||
|
@@ -54,8 +54,7 @@ describe('FormCloudComponent', () => {
|
||||
formCloudService = new FormCloudService(null, new AppConfigService(null));
|
||||
formService = new FormService(null, null, logService);
|
||||
formComponent = new FormCloudComponent(formCloudService, formService, null, formRenderingService, visibilityService, appConfigService);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
it('should check form', () => {
|
||||
expect(formComponent.hasForm()).toBeFalsy();
|
||||
@@ -69,8 +68,7 @@ describe('FormCloudComponent', () => {
|
||||
|
||||
expect(formComponent.showTitle).toBeTruthy();
|
||||
expect(formComponent.isTitleEnabled()).toBeTruthy();
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
it('should not allow title if showTitle is false', () => {
|
||||
const formModel = new FormModel();
|
||||
@@ -812,8 +810,7 @@ describe('FormCloudComponent', () => {
|
||||
});
|
||||
|
||||
formComponent.ngOnChanges({ 'data': change });
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
it('should refresh radio buttons value when id is given to data', () => {
|
||||
formComponent.form = new FormModel(JSON.parse(JSON.stringify(cloudFormMock)));
|
||||
|
@@ -222,6 +222,5 @@ describe('Form Cloud service', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -533,8 +533,7 @@ describe('GroupCloudComponent', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('Multiple Mode with read-only', () => {
|
||||
|
||||
|
@@ -750,5 +750,4 @@ describe('PeopleCloudComponent', () => {
|
||||
const duplicatedUsers = [{ id: mockUsers[0].id }, { id: mockUsers[0].id }];
|
||||
expect(component.removeDuplicatedUsers(duplicatedUsers)).toEqual([{ id: mockUsers[0].id }]);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -80,5 +80,4 @@ describe('CancelProcessDirective', () => {
|
||||
fixture.detectChanges();
|
||||
expect(component.cancelProcessDirective.checkCanCancelProcess()).toBeFalsy();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -211,8 +211,7 @@ describe('ProcessFiltersCloudComponent', () => {
|
||||
|
||||
fixture.detectChanges();
|
||||
component.ngOnChanges({ 'appName': change });
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
it('should select the filter based on the input by key param', (done) => {
|
||||
spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable);
|
||||
@@ -231,8 +230,7 @@ describe('ProcessFiltersCloudComponent', () => {
|
||||
});
|
||||
|
||||
component.ngOnChanges({ 'appName': change });
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
it('should select the default filter if filter input does not exist', (done) => {
|
||||
spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable);
|
||||
@@ -252,8 +250,7 @@ describe('ProcessFiltersCloudComponent', () => {
|
||||
});
|
||||
|
||||
component.ngOnChanges({ 'appName': change });
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
it('should select the filter based on the input by index param', (done) => {
|
||||
spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable);
|
||||
@@ -272,8 +269,7 @@ describe('ProcessFiltersCloudComponent', () => {
|
||||
});
|
||||
|
||||
component.ngOnChanges({ 'appName': change });
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
it('should select the filter based on the input by id param', (done) => {
|
||||
spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable);
|
||||
|
@@ -64,7 +64,6 @@ describe('ClaimTaskDirective', () => {
|
||||
button.click();
|
||||
expect(taskCloudService.claimTask).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('Claim Task Directive validation errors', () => {
|
||||
|
@@ -65,7 +65,6 @@ describe('UnClaimTaskDirective', () => {
|
||||
button.click();
|
||||
expect(taskCloudService.unclaimTask).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('UnClaim Task Directive validation errors', () => {
|
||||
|
@@ -70,8 +70,7 @@ describe('TaskFormCloudComponent', () => {
|
||||
fixture = TestBed.createComponent(TaskFormCloudComponent);
|
||||
debugElement = fixture.debugElement;
|
||||
component = fixture.componentInstance;
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
it('should create TaskFormCloudComponent ', () => {
|
||||
expect(component instanceof TaskFormCloudComponent).toBe(true);
|
||||
@@ -407,8 +406,7 @@ describe('TaskFormCloudComponent', () => {
|
||||
|
||||
expect(loadingTemplate).toBeNull();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@Component({
|
||||
|
@@ -179,8 +179,7 @@ describe('TaskHeaderCloudComponent', () => {
|
||||
expect(updateTaskSpy).toHaveBeenCalled();
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('Task with parentTaskId', () => {
|
||||
|
||||
|
@@ -314,8 +314,7 @@ describe('TaskListCloudComponent', () => {
|
||||
customCopyComponent.taskList.ngOnChanges({ 'appName': appName });
|
||||
copyFixture.detectChanges();
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('Creating an empty custom template - EmptyTemplateComponent', () => {
|
||||
let fixtureEmpty: ComponentFixture<EmptyTemplateComponent>;
|
||||
@@ -426,5 +425,4 @@ describe('TaskListCloudComponent', () => {
|
||||
component.ngAfterContentInit();
|
||||
}));
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -129,5 +129,4 @@ describe('Activiti TaskList Cloud Service', () => {
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user