| 1355 | let log: string[]; |
| 1356 | |
| 1357 | class ClassWithNextState { |
| 1358 | canDeactivate( |
| 1359 | component: TeamCmp, |
| 1360 | currentRoute: ActivatedRouteSnapshot, |
| 1361 | currentState: RouterStateSnapshot, |
| 1362 | nextState: RouterStateSnapshot, |
| 1363 | ): boolean { |
| 1364 | log.push(currentState.url, nextState.url); |
| 1365 | return true; |
| 1366 | } |
| 1367 | } |
| 1368 | |
| 1369 | beforeEach(() => { |
| 1370 | log = []; |
nothing calls this directly
no outgoing calls
no test coverage detected