- // Add an empty value with required validator to set the dialog's instance form to be invalid.
- const value: any = null;
- component.instanceForm.addControl(
- "dummy",
- new FormControl(value, [Validators.required])
- );
- expect(component.instanceForm.valid).toBeFalsy();