| 21 | describe('parse errors', () => { |
| 22 | it('should only pass parse errors through to the originating custom control', async () => { |
| 23 | @Component({ |
| 24 | imports: [TestNumberInput, FormField], |
| 25 | template: ` |
| 26 | <test-number-input id="input1" [formField]="f" /> |
| 27 | <test-number-input id="input2" [formField]="f" /> |
| 28 | `, |
| 29 | }) |
| 30 | class TestCmp { |
| 31 | state = signal<number | null>(5); |
| 32 | f = form(this.state); |
| 33 | } |
| 34 | |
| 35 | const testEl = (await act(() => TestBed.createComponent(TestCmp))).nativeElement as HTMLElement; |
| 36 | const input1: HTMLInputElement = testEl.querySelector('#input1 input')!; |
nothing calls this directly
no test coverage detected
searching dependent graphs…