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

Function getCheckedStates

packages/forms/signals/test/web/form_field.spec.ts:4289–4292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4287 const fixture = TestBed.createComponent(TestCmp);
4288 await fixture.whenStable();
4289 const getCheckedStates = () =>
4290 Array.from(
4291 (fixture.nativeElement as HTMLElement).querySelectorAll<HTMLInputElement>('input'),
4292 ).map((input) => input.checked);
4293
4294 expect(getCheckedStates()).toEqual([false, true]);
4295

Callers 1

form_field.spec.tsFile · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected