MCPcopy Create free account
hub / github.com/angular/components / getStates

Function getStates

src/material/timepicker/timepicker.spec.ts:505–509  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

503 describe('panel options behavior', () => {
504 it('should set the selected state of the options based on the input value', () => {
505 const getStates = () => {
506 return getOptions().map(
507 o => `${o.textContent} - ${o.classList.contains('mdc-list-item--selected')}`,
508 );
509 };
510 const fixture = TestBed.createComponent(StandaloneTimepicker);
511 const input = getInput(fixture);
512 fixture.componentInstance.min.set(createTime(12, 0));

Callers 1

timepicker.spec.tsFile · 0.85

Calls 1

getOptionsFunction · 0.70

Tested by

no test coverage detected