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

Function getCheckedStates

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

Source from the content-addressed store, hash-verified

4260 const fixture = TestBed.createComponent(TestCmp);
4261 await fixture.whenStable();
4262 const getCheckedStates = () =>
4263 Array.from(
4264 (fixture.nativeElement as HTMLElement).querySelectorAll<HTMLInputElement>('input'),
4265 ).map((input) => input.checked);
4266
4267 expect(getCheckedStates()).toEqual([false, true]);
4268

Callers 1

form_field.spec.tsFile · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected