MCPcopy Create free account
hub / github.com/angular/angular / createSnapshot

Function createSnapshot

packages/router/test/router_state.spec.ts:115–131  ·  view source on GitHub ↗
(params: Params, url: UrlSegment[])

Source from the content-addressed store, hash-verified

113
114 describe('equalParamsAndUrlSegments', () => {
115 function createSnapshot(params: Params, url: UrlSegment[]): ActivatedRouteSnapshot {
116 const snapshot = new (ActivatedRouteSnapshot as any)(
117 url,
118 params,
119 null,
120 null,
121 null,
122 null,
123 null,
124 null,
125 null,
126 -1,
127 null,
128 );
129 snapshot._routerState = new (RouterStateSnapshot as any)('', new TreeNode(snapshot, []));
130 return snapshot;
131 }
132
133 function createSnapshotPairWithParent(
134 params: [Params, Params],

Callers 3

matchWithChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected