Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Jan 23, 2025
1 parent c2c2471 commit 64c2470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('CheckInFormComponent', () => {
false]
])('should correctly validate value input', (value, validity) => {
component.dialogForm = new FormGroup({
metricValue: new FormControl<number>(undefined, [Validators.required,
metricValue: new FormControl<number | undefined>(undefined, [Validators.required,
Validators.pattern('^\\s*-?\\d+\\.?\\d*\\s*$')])
});
component.dialogForm.setValue({ metricValue: value });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ describe('CheckInFormComponent', () => {
expect(component.dialogForm.value)
.toStrictEqual({
confidence: checkInMetric.confidence,
metricValue: checkInMetric.value!.toString(),
changeInfo: checkInMetric.changeInfo,
initiatives: checkInMetric.initiatives,
actionList: undefined
Expand All @@ -168,10 +167,10 @@ describe('CheckInFormComponent', () => {
component.keyResult = keyResultOrdinal;
component.ngOnInit();
component.setDefaultValues();
console.log(component.dialogForm.value);
expect(component.dialogForm.value)
.toStrictEqual({
confidence: keyResultOrdinal.lastCheckIn!.confidence,
ordinal: {} as Zone,
changeInfo: '',
initiatives: '',
actionList: []
Expand Down

0 comments on commit 64c2470

Please sign in to comment.