| 21 | |
| 22 | it('should bind compat form to input with [formField] directive', () => { |
| 23 | @Component({ |
| 24 | imports: [FormField], |
| 25 | template: ` |
| 26 | <input [formField]="f.name" /> |
| 27 | <input type="number" [formField]="f.age" /> |
| 28 | `, |
| 29 | }) |
| 30 | class TestCmp { |
| 31 | readonly cat = signal({ |
| 32 | name: new FormControl('pirojok-the-cat', {nonNullable: true}), |
| 33 | age: new FormControl(5, {nonNullable: true}), |
| 34 | }); |
| 35 | readonly f = compatForm(this.cat); |
| 36 | } |
| 37 | |
| 38 | const fixture = act(() => TestBed.createComponent(TestCmp)); |
| 39 | const inputs = fixture.nativeElement.querySelectorAll('input'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…