( type: Type<T>, template: string, components: any[] = [], )
| 832 | } |
| 833 | |
| 834 | function createTestCmp<T>( |
| 835 | type: Type<T>, |
| 836 | template: string, |
| 837 | components: any[] = [], |
| 838 | ): ComponentFixture<T> { |
| 839 | TestBed.overrideComponent(type, {set: {template}}); |
| 840 | if (components.length > 0) { |
| 841 | TestBed.overrideComponent(type, {add: {imports: components}}); |
| 842 | } |
| 843 | return TestBed.createComponent(type); |
| 844 | } |
| 845 | |
| 846 | function createTestCmpAndDetectChanges<T>( |
| 847 | type: Type<T>, |
no test coverage detected