()
| 834 | return true; |
| 835 | }; |
| 836 | const trueIn2Seconds = () => { |
| 837 | log.push('trueIn2Seconds-start'); |
| 838 | return new Promise<boolean>((res) => { |
| 839 | setTimeout(() => { |
| 840 | log.push('trueIn2Seconds-end'); |
| 841 | res(true); |
| 842 | }, 20); |
| 843 | }); |
| 844 | }; |
| 845 | router.resetConfig([ |
| 846 | {path: 'a', component: SimpleCmp, canActivate: [trueRightAway, trueIn2Seconds]}, |
| 847 | {path: 'b', component: SimpleCmp, canActivate: [trueRightAway, trueIn2Seconds]}, |
nothing calls this directly
no test coverage detected
searching dependent graphs…