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

Function canMatchFactory

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

createUrlTreeMethod · 0.45

Tested by

no test coverage detected