MCPcopy Create free account
hub / github.com/angular/angular / initWithTemplate

Function initWithTemplate

packages/core/test/acceptance/query_spec.ts:2758–2763  ·  view source on GitHub ↗
(compType: Type<any>, template: string)

Source from the content-addressed store, hash-verified

2756});
2757
2758function initWithTemplate(compType: Type<any>, template: string) {
2759 TestBed.overrideComponent(compType, {set: new Component({template})});
2760 const fixture = TestBed.createComponent(compType);
2761 fixture.detectChanges();
2762 return fixture;
2763}
2764
2765@Component({
2766 selector: 'local-ref-query-component',

Callers 1

query_spec.tsFile · 0.70

Calls 3

overrideComponentMethod · 0.65
createComponentMethod · 0.65
detectChangesMethod · 0.45

Tested by

no test coverage detected