MCPcopy Create free account
hub / github.com/angular/components / createComponent

Function createComponent

src/material/icon/icon.spec.ts:51–58  ·  view source on GitHub ↗

Creates a test component fixture.

(component: Type<T>, providers: Provider[] = [])

Source from the content-addressed store, hash-verified

49
50/** Creates a test component fixture. */
51function createComponent<T>(component: Type<T>, providers: Provider[] = []) {
52 TestBed.configureTestingModule({
53 imports: [MatIconModule, component],
54 providers: [...providers],
55 });
56
57 return TestBed.createComponent<T>(component);
58}
59
60describe('MatIcon', () => {
61 let fakePath: string;

Callers 1

icon.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected