| 24 | |
| 25 | it('binds to formField directive', () => { |
| 26 | @Component({ |
| 27 | standalone: true, |
| 28 | imports: [ReactiveFormsModule, FormField], |
| 29 | template: `<input [formField]="signalControl.fieldTree" />`, |
| 30 | }) |
| 31 | class TestCmp { |
| 32 | readonly signalControl = new SignalFormControl('initial', undefined, { |
| 33 | injector: inject(Injector), |
| 34 | }); |
| 35 | readonly control = this.signalControl as unknown as FormControl; |
| 36 | } |
| 37 | |
| 38 | const fixture = act(() => TestBed.createComponent(TestCmp)); |
| 39 | const input: HTMLInputElement = fixture.nativeElement.querySelector('input'); |