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

Class Guard

packages/router/test/standalone.spec.ts:301–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 it('does not load component when canActivate returns false', async () => {
300 const loadComponentSpy = jasmine.createSpy();
301 @Injectable({providedIn: 'root'})
302 class Guard {
303 canActivate() {
304 return false;
305 }
306 }
307
308 TestBed.configureTestingModule({
309 imports: [

Callers

nothing calls this directly

Calls 1

InjectableInterface · 0.90

Tested by

no test coverage detected