| 100 | describe('field input', () => { |
| 101 | it('should bind new field to control when changed', () => { |
| 102 | @Component({ |
| 103 | imports: [FormField], |
| 104 | template: `<input [formField]="formField()" />`, |
| 105 | }) |
| 106 | class TestCmp { |
| 107 | readonly model = signal({x: 'a', y: 'b'}); |
| 108 | readonly f = form(this.model); |
| 109 | readonly formField = signal(this.f.x); |
| 110 | } |
| 111 | |
| 112 | const fixture = act(() => TestBed.createComponent(TestCmp)); |
| 113 | const component = fixture.componentInstance; |
nothing calls this directly
no test coverage detected