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

Function configureTestingModule

src/material/timepicker/timepicker.spec.ts:1381–1391  ·  view source on GitHub ↗
(additionalProviders: Provider[] = [])

Source from the content-addressed store, hash-verified

1379 }
1380
1381 function configureTestingModule(additionalProviders: Provider[] = []): void {
1382 TestBed.configureTestingModule({
1383 providers: [
1384 provideNativeDateAdapter(),
1385 {provide: MATERIAL_ANIMATIONS, useValue: {animationsDisabled: true}},
1386 ...additionalProviders,
1387 ],
1388 });
1389 adapter = TestBed.inject(DateAdapter);
1390 adapter.setLocale('en-US');
1391 }
1392
1393 function getInput(fixture: ComponentFixture<unknown>): HTMLInputElement {
1394 return fixture.nativeElement.querySelector('.mat-timepicker-input');

Callers 1

timepicker.spec.tsFile · 0.85

Calls 2

provideNativeDateAdapterFunction · 0.90
setLocaleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…