| 183 | const CHILD_TOKEN = new InjectionToken<string>('test token for child'); |
| 184 | |
| 185 | @NgModule({ |
| 186 | imports: [RouterModule.forChild([{path: 'child', redirectTo: ''}])], |
| 187 | providers: [{provide: CHILD_TOKEN, useValue: 'child'}], |
| 188 | }) |
| 189 | class Child {} |
| 190 | |
| 191 | TestBed.configureTestingModule({ |
| 192 | providers: [ |