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

Class TestCmp

packages/forms/signals/test/web/signal_form_control_web.spec.ts:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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');

Callers

nothing calls this directly

Calls 5

ComponentInterface · 0.90
injectFunction · 0.90
signalFunction · 0.90
disabledFunction · 0.90
valueFunction · 0.85

Tested by

no test coverage detected