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

Function getTreeItem

src/aria/combobox/combobox.spec.ts:706–711  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

704 }
705
706 function getTreeItem(text: string): HTMLElement | null {
707 const items = Array.from(
708 fixture.nativeElement.querySelectorAll('[ngTreeItem]'),
709 ) as HTMLElement[];
710 return items.find(item => item.textContent?.trim().startsWith(text)) || null;
711 }
712
713 function getTreeItems(): HTMLElement[] {
714 return Array.from(fixture.nativeElement.querySelectorAll('[ngTreeItem]')) as HTMLElement[];

Callers 1

combobox.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected