[ADF-3238] content size min error added (#3532)

* content size min error added

* clean code
This commit is contained in:
bbcodrin
2018-06-27 11:38:57 +03:00
committed by Eugenio Romano
parent f7aaafed86
commit 8cc07f5816
3 changed files with 11 additions and 5 deletions

View File

@@ -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);
});
});