Open up the context menu and run change detection.
()
| 42 | |
| 43 | /** Open up the context menu and run change detection. */ |
| 44 | function openContextMenu() { |
| 45 | // right click triggers a context menu event |
| 46 | dispatchMouseEvent(getMenuTrigger(), 'contextmenu'); |
| 47 | fixture.detectChanges(); |
| 48 | } |
| 49 | |
| 50 | it('should display context menu on right click inside of context component', () => { |
| 51 | expect(getContextMenu()).not.toBeDefined(); |
no test coverage detected