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

Class PendingTestCmp

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

Source from the content-addressed store, hash-verified

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

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