MCPcopy
hub / github.com/angular/components / createComponent

Function createComponent

src/material/datepicker/datepicker-actions.spec.ts:11–20  ·  view source on GitHub ↗
(component: Type<T>)

Source from the content-addressed store, hash-verified

9
10describe('MatDatepickerActions', () => {
11 function createComponent<T>(component: Type<T>): ComponentFixture<T> {
12 TestBed.configureTestingModule({
13 providers: [
14 {provide: MATERIAL_ANIMATIONS, useValue: {animationsDisabled: true}},
15 provideNativeDateAdapter(),
16 ],
17 });
18
19 return TestBed.createComponent(component);
20 }
21
22 it('should render the actions inside calendar panel in popup mode', () => {
23 const fixture = createComponent(DatepickerWithActions);

Callers 1

Calls 1

provideNativeDateAdapterFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…