Fetch triggers, menus and the menu stack from the test component.
()
| 20 | |
| 21 | /** Fetch triggers, menus and the menu stack from the test component. */ |
| 22 | function getElementsForTesting() { |
| 23 | fixture.detectChanges(); |
| 24 | triggers = fixture.componentInstance.triggers.toArray(); |
| 25 | menus = fixture.componentInstance.menus.toArray(); |
| 26 | menuStack = fixture.componentInstance.menuBar.menuStack; |
| 27 | } |
| 28 | |
| 29 | beforeEach(() => { |
| 30 | fixture = TestBed.createComponent(MultiMenuWithSubmenu); |
no outgoing calls
no test coverage detected
searching dependent graphs…