()
| 822 | return true; |
| 823 | }; |
| 824 | const trueIn2Seconds = () => { |
| 825 | log.push('trueIn2Seconds-start'); |
| 826 | return new Promise<boolean>((res) => { |
| 827 | setTimeout(() => { |
| 828 | log.push('trueIn2Seconds-end'); |
| 829 | res(true); |
| 830 | }, 20); |
| 831 | }); |
| 832 | }; |
| 833 | router.resetConfig([ |
| 834 | {path: 'a', component: SimpleCmp, canActivate: [trueRightAway, trueIn2Seconds]}, |
| 835 | {path: 'b', component: SimpleCmp, canActivate: [trueRightAway, trueIn2Seconds]}, |
nothing calls this directly
no test coverage detected