(moduleType: Type<T>, parentInjector?: Injector | null)
| 123 | } |
| 124 | |
| 125 | function createModule<T>(moduleType: Type<T>, parentInjector?: Injector | null): NgModuleRef<T> { |
| 126 | // Read the `ngModuleDef` to cause it to be compiled and any errors thrown. |
| 127 | getNgModuleDef(moduleType); |
| 128 | return createModuleFactory(moduleType).create(parentInjector || null); |
| 129 | } |
| 130 | |
| 131 | function createComp<T>(compType: Type<T>, moduleType: Type<any>): ComponentFixture<T> { |
| 132 | const componentDef = (compType as any).ɵcmp; |
no test coverage detected
searching dependent graphs…