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

Function initWithTemplate

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

Source from the content-addressed store, hash-verified

3095});
3096
3097function initWithTemplate(compType: Type<any>, template: string) {
3098 TestBed.overrideComponent(compType, {set: new Component({template})});
3099 const fixture = TestBed.createComponent(compType);
3100 fixture.detectChanges();
3101 return fixture;
3102}
3103
3104@Component({
3105 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