|
1 | | -import {TestBed, inject} from '@angular/core/testing'; |
2 | | -import {dispatchKeyboardEvent} from '../../testing/private'; |
3 | 1 | import {ESCAPE} from '@angular/cdk/keycodes'; |
| 2 | +import {ComponentPortal} from '@angular/cdk/portal'; |
4 | 3 | import {ApplicationRef, Component} from '@angular/core'; |
5 | | -import {OverlayModule, Overlay} from '../index'; |
| 4 | +import {TestBed, inject} from '@angular/core/testing'; |
| 5 | +import {dispatchKeyboardEvent} from '../../testing/private'; |
| 6 | +import {Overlay, OverlayModule} from '../index'; |
6 | 7 | import {OverlayKeyboardDispatcher} from './overlay-keyboard-dispatcher'; |
7 | | -import {ComponentPortal} from '@angular/cdk/portal'; |
8 | 8 |
|
9 | 9 | describe('OverlayKeyboardDispatcher', () => { |
10 | 10 | let appRef: ApplicationRef; |
@@ -192,11 +192,6 @@ describe('OverlayKeyboardDispatcher', () => { |
192 | 192 | expect(appRef.tick).toHaveBeenCalledTimes(0); |
193 | 193 | dispatchKeyboardEvent(document.body, 'keydown', ESCAPE); |
194 | 194 | expect(appRef.tick).toHaveBeenCalledTimes(0); |
195 | | - |
196 | | - overlayRef.keydownEvents().subscribe(); |
197 | | - dispatchKeyboardEvent(document.body, 'keydown', ESCAPE); |
198 | | - |
199 | | - expect(appRef.tick).toHaveBeenCalledTimes(1); |
200 | 195 | }); |
201 | 196 | }); |
202 | 197 |
|
|
0 commit comments