(parentInjector: EnvironmentInjector)
| 293 | // app-level injector). It is needed to verify `ApplicationRef.destroy` scenarios, which |
| 294 | // includes destroying an underlying injector. |
| 295 | function createApplicationRefInjector(parentInjector: EnvironmentInjector) { |
| 296 | const extraProviders = [{provide: ApplicationRef, useClass: ApplicationRef}]; |
| 297 | |
| 298 | return createEnvironmentInjector(extraProviders, parentInjector); |
| 299 | } |
| 300 | |
| 301 | function createApplicationRef(parentInjector: EnvironmentInjector) { |
| 302 | const injector = createApplicationRefInjector(parentInjector); |
no test coverage detected
searching dependent graphs…