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

Class PendingTestCmp

packages/forms/signals/test/web/form_field.spec.ts:5106–5125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5104 }
5105
5106 @Component({
5107 template: ` <my-input [formField]="f" /> `,
5108 imports: [CustomInput, FormField],
5109 })
5110 class PendingTestCmp {
5111 myInput = viewChild.required<CustomInput>(CustomInput);
5112 data = signal('test');
5113 f = form(this.data, (p) => {
5114 validateAsync(p, {
5115 params: () => [],
5116 factory: (params) =>
5117 resource({
5118 params,
5119 loader: () => promise,
5120 }),
5121 onSuccess: (results) => results,
5122 onError: () => null,
5123 });
5124 });
5125 }
5126
5127 const fix = act(() => TestBed.createComponent(PendingTestCmp));
5128

Callers

nothing calls this directly

Calls 6

ComponentInterface · 0.90
signalFunction · 0.90
resourceFunction · 0.90
formFunction · 0.85
validateAsyncFunction · 0.85
requiredMethod · 0.45

Tested by

no test coverage detected