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

@@ -136,5 +136,4 @@ describe('ButtonsMenuComponent', () => {
});
}));
});
});

View File

@@ -303,5 +303,4 @@ describe('CardViewDateItemComponent', () => {
fixture.whenStable().then(() => expect(component.property.value).toEqual(expectedDate.toDate()));
});
}));
});

View File

@@ -171,6 +171,5 @@ describe('CardViewKeyValuePairsItemComponent', () => {
expect(cardViewUpdateService.update).not.toHaveBeenCalled();
});
}));
});
});
});

View File

@@ -129,5 +129,4 @@ describe('CardViewMapItemComponent', () => {
value.click();
});
});

View File

@@ -92,6 +92,5 @@ describe('CardViewSelectItemComponent', () => {
const label = fixture.debugElement.query(By.css('[data-automation-class="select-box"] .mat-form-field-label'));
expect(label).toBeNull();
});
});
});
});

View File

@@ -295,8 +295,7 @@ describe('CommentsComponent', () => {
component.add();
expect(emitSpy).toHaveBeenCalled();
});
});
});
describe('Add comment node', () => {
@@ -383,7 +382,5 @@ describe('CommentsComponent', () => {
component.add();
expect(emitSpy).toHaveBeenCalled();
});
});
});
});

View File

@@ -31,5 +31,4 @@ describe('DataColumnListComponent', () => {
const component = fixture.debugElement.componentInstance;
expect(component).toBeTruthy();
});
});

View File

@@ -39,5 +39,4 @@ describe('DataColumnListComponent', () => {
component.ngOnInit();
expect(component.srTitle).toBeTruthy();
});
});

View File

@@ -634,8 +634,7 @@ describe('DataTable', () => {
dataTable.onRowClick(row, null);
}
, 240);
});
});
it('should emit double click if there are more than two single click in 250ms', (done) => {
@@ -655,8 +654,7 @@ describe('DataTable', () => {
dataTable.onRowClick(row, null);
}
, 240);
});
});
it('should emit single click if there are two single click in more than 250ms', (done) => {
@@ -803,8 +801,7 @@ describe('DataTable', () => {
direction: 'asc'
})
);
});
});
it('should indicate column that has sorting applied', () => {
dataTable.data = new ObjectDataTableAdapter(

View File

@@ -92,8 +92,7 @@ describe('LocationCellComponent', () => {
expect(value).toBe('');
done();
});
});
});
it('should not setup cell when path is missing required properties', (done) => {
rowData.path = { someProp: '' };

View File

@@ -295,7 +295,6 @@ describe('ObjectDataTableAdapter', () => {
})
);
});
});
describe('ObjectDataRow', () => {
@@ -364,5 +363,4 @@ describe('ObjectDataRow', () => {
expect(schema[0].title).toBe('id');
expect(schema[1].title).toBe('name');
});
});

View File

@@ -80,8 +80,7 @@ describe('LogoutDirective', () => {
expect(authService.logout).toHaveBeenCalled();
expect(router.navigate).toHaveBeenCalledWith(['/login']);
});
});
});
describe('redirectUri', () => {
@@ -125,8 +124,7 @@ describe('LogoutDirective', () => {
expect(authService.logout).toHaveBeenCalled();
expect(router.navigate).toHaveBeenCalledWith(['/myCustomUri']);
});
});
});
describe('enableRedirect', () => {
@@ -170,5 +168,4 @@ describe('LogoutDirective', () => {
expect(router.navigate).not.toHaveBeenCalled();
});
});
});

View File

@@ -387,5 +387,4 @@ describe('NodeDeleteDirective', () => {
});
});
});

View File

@@ -276,6 +276,5 @@ describe('NodeRestoreDirective', () => {
element.triggerEventHandler('click', null);
});
});
});
});

View File

@@ -144,5 +144,4 @@ describe('FormFieldComponent', () => {
fixture.detectChanges();
expect(fixture.nativeElement.querySelector('#field-FAKE-TXT-WIDGET-container').hidden).toBeTruthy();
});
});

View File

@@ -63,5 +63,4 @@ describe('TaskAttachmentList', () => {
expect(element.querySelectorAll('.adf-datatable-body > .adf-datatable-row').length).toBe(2);
});
}));
});

View File

@@ -75,7 +75,6 @@ describe('AmountWidgetComponent', () => {
widget.ngOnInit();
expect(widget.placeholder).toBe('1234');
});
});
describe('AmountWidgetComponent settings', () => {

View File

@@ -70,6 +70,5 @@ describe('CheckboxWidgetComponent', () => {
expect(element.querySelector('.adf-invalid')).not.toBeNull();
});
}));
});
});
});

View File

@@ -38,5 +38,4 @@ describe('ContainerColumnModel', () => {
column.fields = [new FormFieldModel(new FormModel(), null)];
expect(column.hasFields()).toBeTruthy();
});
});

View File

@@ -73,5 +73,4 @@ describe('ContainerWidgetComponentModel', () => {
}));
expect(container.isCollapsedByDefault()).toBeTruthy();
});
});

View File

@@ -26,5 +26,4 @@ describe('ContainerModel', () => {
const model = new ContainerModel(new FormFieldModel(form));
expect(model.form).toBe(form);
});
});

View File

@@ -197,8 +197,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
});
});
});
describe('NumberFieldValidator', () => {
@@ -262,8 +261,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
expect(field.validationSummary).not.toBeNull();
});
});
});
describe('MinLengthFieldValidator', () => {
@@ -315,8 +313,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
expect(field.validationSummary).not.toBeNull();
});
});
});
describe('MaxLengthFieldValidator', () => {
@@ -439,8 +436,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
expect(field.validationSummary).not.toBeNull();
});
});
});
describe('MaxValueFieldValidator', () => {
@@ -511,8 +507,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
expect(field.validationSummary).not.toBeNull();
});
});
});
describe('RegExFieldValidator', () => {
@@ -561,8 +556,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
});
});
});
describe('FixedValueFieldValidator', () => {
@@ -614,8 +608,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
});
});
});
describe('MaxDateTimeFieldValidator', () => {
@@ -741,8 +734,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
expect(field.validationSummary).not.toBeNull();
});
});
});
describe('MinDateTimeFieldValidator', () => {
@@ -868,8 +860,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
expect(field.validationSummary).not.toBeNull();
});
});
});
describe('MaxDateFieldValidator', () => {
@@ -962,8 +953,7 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
expect(field.validationSummary).not.toBeNull();
});
});
});
describe('MinDateFieldValidator', () => {
@@ -1056,6 +1046,5 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeFalsy();
expect(field.validationSummary).not.toBeNull();
});
});
});
});

View File

@@ -41,5 +41,4 @@ describe('FormOutcomeModel', () => {
const model = new FormOutcomeModel(null, json);
expect(model.json).toBe(json);
});
});

View File

@@ -37,5 +37,4 @@ describe('FormWidgetModel', () => {
const model = new FormWidgetModelMock(null, json);
expect(model.json).toBe(json);
});
});

View File

@@ -70,5 +70,4 @@ describe('TabModel', () => {
const model = new TabModel(null, json);
expect(model.json).toBe(json);
});
});

View File

@@ -308,8 +308,7 @@ describe('DynamicTableWidgetComponent', () => {
expect(widget.content.field.validate()).toBeTruthy();
expect(widget.isValid()).toBe(widget.content.field.isValid);
expect(widget.content.field.isValid).toBeTruthy();
});
});
it('should prepend default currency for amount columns', () => {
const row = <DynamicTableRow> {value: {key: '100'}};

View File

@@ -37,5 +37,4 @@ describe('AmountEditorComponent', () => {
editor.onValueChanged(row, column, event);
expect(row.value[column.id]).toBe(value);
});
});

View File

@@ -36,5 +36,4 @@ describe('BooleanEditorComponent', () => {
component.onValueChanged(row, column, event);
expect(row.value[column.id]).toBeTruthy();
});
});

View File

@@ -143,7 +143,5 @@ describe('DateEditorComponent', () => {
const actual = row.value[column.id];
expect(actual).toBe('');
});
});
});
});

View File

@@ -85,5 +85,4 @@ describe('DateTimeEditorComponent', () => {
expect(table.flushValue).toHaveBeenCalled();
});
});

View File

@@ -301,7 +301,5 @@ describe('DropdownEditorComponent', () => {
}));
});
});
});
});

View File

@@ -78,5 +78,4 @@ describe('RowEditorComponent', () => {
component.onSaveChanges();
expect(raised).toBeFalsy();
});
});

View File

@@ -37,5 +37,4 @@ describe('TextEditorComponent', () => {
editor.onValueChanged(row, column, event);
expect(row.value[column.id]).toBe(value);
});
});

View File

@@ -270,5 +270,4 @@ describe('PeopleWidgetComponent', () => {
});
});
});
});

View File

@@ -156,6 +156,5 @@ describe('TabsWidgetComponent', () => {
});
tabWidgetComponent.tabChanged(null);
}));
});
});
});

View File

@@ -411,7 +411,5 @@ describe('UploadWidgetComponent', () => {
});
});
});
});
});

View File

@@ -54,8 +54,7 @@ describe('WidgetComponent', () => {
element.click();
});
});
});
it('should check field', () => {
expect(widget.hasField()).toBeFalsy();
@@ -103,5 +102,4 @@ describe('WidgetComponent', () => {
widget.field = new FormFieldModel(null, {required: true});
expect(widget.isRequired()).toBeTruthy();
});
});

View File

@@ -128,5 +128,4 @@ describe('FormRenderingService', () => {
const type = resolver(null);
expect(type).toBe(JsonWidgetComponent);
});
});

View File

@@ -461,6 +461,5 @@ describe('Form service', () => {
});
}
});
});
});
});

View File

@@ -93,5 +93,4 @@ describe('LoginDialogPanelComponent', () => {
fixture.detectChanges();
expect(component.isValid()).toBeTruthy();
});
});

View File

@@ -498,8 +498,7 @@ describe('LoginComponent', () => {
loginWithCredentials('fake-username-ECM-access-error', 'fake-password');
}));
});
});
it('should trim the username value', () => {
usernameInput.value = 'username ';
@@ -541,8 +540,7 @@ describe('LoginComponent', () => {
});
loginWithCredentials('fake-username', 'fake-password');
});
});
it('should emit success event after the login has succeeded and discard password', async(() => {
spyOn(authService, 'login').and.returnValue(of({ type: 'type', ticket: 'ticket' }));

View File

@@ -189,5 +189,4 @@ describe('NotificationService', () => {
expect(document.querySelector('snack-bar-container')).not.toBeNull();
});
});

View File

@@ -87,5 +87,4 @@ describe('FileSizePipe', () => {
expect(pipe.transform(size, precision)).toBe(expectancy);
});
});
});

View File

@@ -30,5 +30,4 @@ describe('FileTypePipe', () => {
it('should return file type from alt text', () => {
expect(pipe.transform(altText)).toBe('word');
});
});

View File

@@ -30,8 +30,7 @@ describe('FullNamePipe', () => {
beforeEach(() => {
pipe = TestBed.get(MultiValuePipe);
});
});
it('should add the separator when a list is provided', () => {
const values = ['cat', 'house', 'dog'];

View File

@@ -197,5 +197,4 @@ describe('AuthGuardService ECM', () => {
expect(materialDialog.closeAll).toHaveBeenCalled();
});
});

View File

@@ -181,5 +181,4 @@ describe('Auth Guard SSO role service', () => {
expect(authGuard.canActivate(route)).toBeFalsy();
expect(materialDialog.closeAll).toHaveBeenCalled();
});
});

View File

@@ -501,5 +501,4 @@ describe('AuthenticationService', () => {
expect(authService.isALLProvider()).toBe(true);
});
});
});

View File

@@ -134,8 +134,7 @@ describe('Comment ProcessService Service', () => {
}));
});
});
});
describe('Task comments', () => {

View File

@@ -173,5 +173,4 @@ describe('Discovery Api Service', () => {
});
});
});
});

View File

@@ -90,8 +90,7 @@ describe('JwtHelperService', () => {
const result = jwtHelperService.hasRealmRoles(['role3', 'role2']);
expect(result).toBeFalsy();
});
});
});
describe('ClientRole ', () => {
@@ -138,7 +137,5 @@ describe('JwtHelperService', () => {
const result = jwtHelperService.hasRealmRolesForClientRole('fakeapp', ['role1', 'role2']);
expect(result).toBeFalsy();
});
});
});
});

View File

@@ -163,6 +163,5 @@ describe('PeopleProcessService', () => {
spyOn(apiService.getInstance(), 'getEcmUsername').and.returnValue('banana-user');
expect(service.isLocked(nodeOwnerAllowedLockWithActiveExpiration)).toBeTruthy();
});
});
});
});

View File

@@ -59,5 +59,4 @@ describe('LoginDialogService', () => {
service.close();
expect(materialDialog.closeAll).toHaveBeenCalled();
});
});

View File

@@ -105,5 +105,4 @@ describe('Sites service', () => {
}
});
});
});

View File

@@ -55,5 +55,4 @@ describe('ThumbnailService', () => {
spyOn(apiService.contentApi, 'getDocumentThumbnailUrl').and.returnValue('/fake-thumbnail.png');
expect(service.getDocumentThumbnailUrl('some-id')).toContain('/fake-thumbnail.png');
});
});

View File

@@ -54,5 +54,4 @@ describe('TranslateLoader', () => {
customLoader.registerProvider('login', 'path/login');
expect(customLoader.providerRegistered('login')).toBeTruthy();
});
});

View File

@@ -98,5 +98,4 @@ describe('TranslationService', () => {
expect(translationService.instant('')).toEqual('');
expect(translationService.instant(undefined)).toEqual('');
});
});

View File

@@ -89,8 +89,7 @@ describe('HostSettingsComponent', () => {
done();
});
});
});
});
describe('BPM ', () => {
@@ -143,8 +142,7 @@ describe('HostSettingsComponent', () => {
expect(ecmUrlInput).toEqual(null);
expect(bpmUrlInput).toBeDefined();
});
});
});
describe('ECM ', () => {
@@ -266,8 +264,7 @@ describe('HostSettingsComponent', () => {
ecmUrlInput.value = url;
bpmUrlInput.dispatchEvent(new Event('input'));
});
});
});
describe('OAUTH ', () => {
@@ -383,7 +380,5 @@ describe('HostSettingsComponent', () => {
clientIdInput.value = '';
clientIdInput.dispatchEvent(new Event('input'));
});
});
});
});

View File

@@ -44,5 +44,4 @@ describe('SortingPickerComponent', () => {
});
component.toggleSortDirection();
});
});

View File

@@ -308,8 +308,7 @@ describe('User info component', () => {
});
}));
});
});
});
describe('when user is logged on bpm', () => {

View File

@@ -350,7 +350,5 @@ describe('Test Img viewer component ', () => {
});
});
});
});
});
});

View File

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

View File

@@ -186,8 +186,7 @@ describe('Test PdfViewer component', () => {
component.ngOnChanges({ 'blobFile': change });
}).toThrow(new Error('Attribute urlFile or blobFile is required'));
});
});
});
describe('View with url file', () => {
@@ -676,8 +675,7 @@ describe('Test PdfViewer component', () => {
expect(componentUrlTestComponent.pdfViewerComponent.currentScaleMode).toBe('auto');
}));
});
});
});
describe('Zoom customization', () => {

View File

@@ -69,6 +69,5 @@ describe('Text View component', () => {
});
});
});
});
});
});

View File

@@ -351,8 +351,7 @@ describe('ViewerComponent', () => {
done();
});
}, 25000);
});
});
it('should change display name every time node changes', fakeAsync(() => {
spyOn(alfrescoApiService.nodesApi, 'getNode').and.returnValues(
@@ -919,8 +918,7 @@ describe('ViewerComponent', () => {
});
});
});
});
});
describe('Viewer component - Full Screen Mode - Mocking fixture element', () => {
@@ -977,5 +975,4 @@ describe('ViewerComponent', () => {
expect(domElement.msRequestFullscreen).toHaveBeenCalled();
});
});
});