| 105 | |
| 106 | it('should complete when initial navigation fails and initialNavigation = enabledBlocking', async () => { |
| 107 | @NgModule({ |
| 108 | imports: [BrowserModule], |
| 109 | declarations: [RootCmp], |
| 110 | bootstrap: [RootCmp], |
| 111 | providers: [ |
| 112 | ...testProviders, |
| 113 | provideRouter( |
| 114 | [ |
| 115 | { |
| 116 | matcher: () => { |
| 117 | throw new Error('error in matcher'); |
| 118 | }, |
| 119 | children: [], |
| 120 | }, |
| 121 | ], |
| 122 | withEnabledBlockingInitialNavigation(), |
| 123 | ), |
| 124 | ], |
| 125 | schemas: [CUSTOM_ELEMENTS_SCHEMA], |
| 126 | }) |
| 127 | class TestModule { |
| 128 | constructor(router: Router) { |
| 129 | log.push('TestModule'); |
| 130 | router.events.subscribe((e) => log.push(e.constructor.name)); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | await platformBrowser([]) |
| 135 | .bootstrapModule(TestModule) |
nothing calls this directly
no test coverage detected
searching dependent graphs…