(events: Subject<Event | PrivateRouterEvents>)
| 45 | }); |
| 46 | |
| 47 | function nextScrollEvent(events: Subject<Event | PrivateRouterEvents>): Promise<Scroll> { |
| 48 | return events |
| 49 | .pipe( |
| 50 | filter((e): e is Scroll => e instanceof Scroll), |
| 51 | take(1), |
| 52 | ) |
| 53 | .toPromise() as Promise<Scroll>; |
| 54 | } |
| 55 | |
| 56 | describe('scroll to top', () => { |
| 57 | it('should scroll to the top', async () => { |
no outgoing calls
no test coverage detected
searching dependent graphs…