| 42 | describe('view creation', () => { |
| 43 | it('should be safe to call ViewContainerRef.createEmbeddedView', () => { |
| 44 | @Component({ |
| 45 | template: `<ng-template #tmpl>Template</ng-template>`, |
| 46 | }) |
| 47 | class TestCmp { |
| 48 | vcr = inject(ViewContainerRef); |
| 49 | @ViewChild('tmpl', {read: TemplateRef}) tmpl!: TemplateRef<unknown>; |
| 50 | } |
| 51 | |
| 52 | const fix = TestBed.createComponent(TestCmp); |
| 53 | fix.detectChanges(); |
nothing calls this directly
no test coverage detected