MCPcopy Create free account
hub / github.com/angular/angular / TestCmp

Class TestCmp

packages/forms/signals/test/node/parse_errors.spec.ts:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

ComponentInterface · 0.90
signalFunction · 0.90
formFunction · 0.85
transformedValueFunction · 0.85
validateFunction · 0.50

Tested by

no test coverage detected