| 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: [ |
nothing calls this directly
no test coverage detected