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

Class PendingTestCmp

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

Source from the content-addressed store, hash-verified

5063 }
5064
5065 @Component({
5066 template: ` <my-input [formField]="f" /> `,
5067 imports: [CustomInput, FormField],
5068 })
5069 class PendingTestCmp {
5070 myInput = viewChild.required<CustomInput>(CustomInput);
5071 data = signal('test');
5072 f = form(this.data, (p) => {
5073 validateAsync(p, {
5074 params: () => [],
5075 factory: (params) =>
5076 resource({
5077 params,
5078 loader: () => promise,
5079 }),
5080 onSuccess: (results) => results,
5081 onError: () => null,
5082 });
5083 });
5084 }
5085
5086 const fix = act(() => TestBed.createComponent(PendingTestCmp));
5087

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