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

Function createComponent

src/material/autocomplete/autocomplete.zone.spec.ts:26–36  ·  view source on GitHub ↗
(component: Type<T>, providers: Provider[] = [])

Source from the content-addressed store, hash-verified

24describe('MatAutocomplete Zone.js integration', () => {
25 // Creates a test component fixture.
26 function createComponent<T>(component: Type<T>, providers: Provider[] = []) {
27 TestBed.configureTestingModule({
28 providers: [
29 provideZoneChangeDetection(),
30 ...providers,
31 {provide: MATERIAL_ANIMATIONS, useValue: {animationsDisabled: true}},
32 ],
33 });
34
35 return TestBed.createComponent<T>(component);
36 }
37
38 describe('panel toggling', () => {
39 let fixture: ComponentFixture<SimpleAutocomplete>;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected