mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4068] StartTaskComponent - fix name and description empty space … (#4351)
* [ADF-4068] StartTaskComponent - fix name and description empty space validation * [ADF-4068] StartTakComponent - add unit test
This commit is contained in:
committed by
Eugenio Romano
parent
71dca95749
commit
0aaa6bea16
@@ -404,4 +404,15 @@ describe('StartTaskComponent', () => {
|
||||
fixture.detectChanges();
|
||||
expect(logSpy).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should emit error when description have only white spaces', () => {
|
||||
fixture.detectChanges();
|
||||
let description = component.taskForm.controls['description'];
|
||||
description.setValue(' ');
|
||||
fixture.detectChanges();
|
||||
expect(description.valid).toBeFalsy();
|
||||
description.setValue('');
|
||||
fixture.detectChanges();
|
||||
expect(description.valid).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user