mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3238] content size min error added (#3532)
* content size min error added * clean code
This commit is contained in:
@@ -160,4 +160,10 @@ describe('SearchNumberRangeComponent', () => {
|
||||
component.from = new FormControl(123, component.validators);
|
||||
expect(component.from.hasError('required')).toBe(false);
|
||||
});
|
||||
|
||||
it('should throw error if "from" value is a negative value', () => {
|
||||
component.ngOnInit();
|
||||
component.from = new FormControl(-100, component.validators);
|
||||
expect(component.from.hasError('min')).toBe(true);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user