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

Function canMatchFactory

packages/router/test/integration/guards.spec.ts:2171–2172  ·  view source on GitHub ↗
(router: Router)

Source from the content-addressed store, hash-verified

2169 it('can return UrlTree from CanMatchFn guard', async () => {
2170 const canMatchTeamSection = new InjectionToken('CanMatchTeamSection');
2171 const canMatchFactory: (router: Router) => CanMatchFn = (router: Router) => () =>
2172 router.createUrlTree(['/team/1']);
2173
2174 TestBed.overrideProvider(canMatchTeamSection, {
2175 useFactory: canMatchFactory,

Callers

nothing calls this directly

Calls 1

createUrlTreeMethod · 0.80

Tested by

no test coverage detected