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