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:
@@ -144,5 +144,4 @@ describe('FormFieldComponent', () => {
|
||||
fixture.detectChanges();
|
||||
expect(fixture.nativeElement.querySelector('#field-FAKE-TXT-WIDGET-container').hidden).toBeTruthy();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -63,5 +63,4 @@ describe('TaskAttachmentList', () => {
|
||||
expect(element.querySelectorAll('.adf-datatable-body > .adf-datatable-row').length).toBe(2);
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
|
@@ -75,7 +75,6 @@ describe('AmountWidgetComponent', () => {
|
||||
widget.ngOnInit();
|
||||
expect(widget.placeholder).toBe('1234');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('AmountWidgetComponent settings', () => {
|
||||
|
@@ -70,6 +70,5 @@ describe('CheckboxWidgetComponent', () => {
|
||||
expect(element.querySelector('.adf-invalid')).not.toBeNull();
|
||||
});
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -38,5 +38,4 @@ describe('ContainerColumnModel', () => {
|
||||
column.fields = [new FormFieldModel(new FormModel(), null)];
|
||||
expect(column.hasFields()).toBeTruthy();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -73,5 +73,4 @@ describe('ContainerWidgetComponentModel', () => {
|
||||
}));
|
||||
expect(container.isCollapsedByDefault()).toBeTruthy();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -26,5 +26,4 @@ describe('ContainerModel', () => {
|
||||
const model = new ContainerModel(new FormFieldModel(form));
|
||||
expect(model.form).toBe(form);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -41,5 +41,4 @@ describe('FormOutcomeModel', () => {
|
||||
const model = new FormOutcomeModel(null, json);
|
||||
expect(model.json).toBe(json);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -37,5 +37,4 @@ describe('FormWidgetModel', () => {
|
||||
const model = new FormWidgetModelMock(null, json);
|
||||
expect(model.json).toBe(json);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -70,5 +70,4 @@ describe('TabModel', () => {
|
||||
const model = new TabModel(null, json);
|
||||
expect(model.json).toBe(json);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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'}};
|
||||
|
@@ -37,5 +37,4 @@ describe('AmountEditorComponent', () => {
|
||||
editor.onValueChanged(row, column, event);
|
||||
expect(row.value[column.id]).toBe(value);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -36,5 +36,4 @@ describe('BooleanEditorComponent', () => {
|
||||
component.onValueChanged(row, column, event);
|
||||
expect(row.value[column.id]).toBeTruthy();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -143,7 +143,5 @@ describe('DateEditorComponent', () => {
|
||||
const actual = row.value[column.id];
|
||||
expect(actual).toBe('');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -85,5 +85,4 @@ describe('DateTimeEditorComponent', () => {
|
||||
|
||||
expect(table.flushValue).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -301,7 +301,5 @@ describe('DropdownEditorComponent', () => {
|
||||
}));
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -78,5 +78,4 @@ describe('RowEditorComponent', () => {
|
||||
component.onSaveChanges();
|
||||
expect(raised).toBeFalsy();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -37,5 +37,4 @@ describe('TextEditorComponent', () => {
|
||||
editor.onValueChanged(row, column, event);
|
||||
expect(row.value[column.id]).toBe(value);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -270,5 +270,4 @@ describe('PeopleWidgetComponent', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -156,6 +156,5 @@ describe('TabsWidgetComponent', () => {
|
||||
});
|
||||
tabWidgetComponent.tabChanged(null);
|
||||
}));
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -411,7 +411,5 @@ describe('UploadWidgetComponent', () => {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user