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

Function getCheckedStates

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

Source from the content-addressed store, hash-verified

4292 const fixture = TestBed.createComponent(TestCmp);
4293 await fixture.whenStable();
4294 const getCheckedStates = () =>
4295 Array.from(
4296 (fixture.nativeElement as HTMLElement).querySelectorAll<HTMLInputElement>('input'),
4297 ).map((input) => input.checked);
4298
4299 expect(getCheckedStates()).toEqual([false, true]);
4300

Callers 1

form_field.spec.tsFile · 0.85

Calls 2

mapMethod · 0.80
fromMethod · 0.45

Tested by

no test coverage detected