Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Jan 23, 2025
1 parent 67f30f4 commit ea20ecd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ describe('CheckInFormComponent', () => {
false]
])('should correctly validate value input', (value, validity) => {
component.dialogForm = new FormGroup({
metricValue: new FormControl<string>('', [Validators.required])
metricValue: new FormControl<number>(undefined, [Validators.required,
Validators.pattern('^\\s*-?\\d+\\.?\\d*\\s*$')])
});
component.dialogForm.setValue({ value: value });
component.dialogForm.setValue({ metricValue: value });
expect(component.dialogForm.valid)
.toEqual(validity);
});
Expand Down

0 comments on commit ea20ecd

Please sign in to comment.