(opts?: {textDirection: 'ltr' | 'rtl'})
| 55 | }; |
| 56 | |
| 57 | async function setupMenu(opts?: {textDirection: 'ltr' | 'rtl'}) { |
| 58 | TestBed.configureTestingModule({ |
| 59 | providers: [provideFakeDirectionality(opts?.textDirection ?? 'ltr')], |
| 60 | }); |
| 61 | fixture = TestBed.createComponent(StandaloneMenuExample); |
| 62 | await fixture.whenStable(); |
| 63 | getItem('Apple')?.focus(); |
| 64 | } |
| 65 | |
| 66 | function getMenu(): HTMLElement { |
| 67 | return fixture.debugElement.query(By.directive(Menu)).nativeElement as HTMLElement; |
no test coverage detected
searching dependent graphs…