MCPcopy
hub / github.com/angular/angular / nextScrollEvent

Function nextScrollEvent

packages/router/test/router_scroller.spec.ts:47–54  ·  view source on GitHub ↗
(events: Subject<Event | PrivateRouterEvents>)

Source from the content-addressed store, hash-verified

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 () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…