MCPcopy Index your code
hub / github.com/angular/components / createFixture

Function createFixture

src/material/stepper/stepper.spec.ts:1319–1328  ·  view source on GitHub ↗
(showErrorByDefault: boolean | undefined)

Source from the content-addressed store, hash-verified

1317 let stepper: MatStepper;
1318
1319 function createFixture(showErrorByDefault: boolean | undefined) {
1320 fixture = createComponent(MatHorizontalStepperWithErrorsApp, [
1321 {
1322 provide: STEPPER_GLOBAL_OPTIONS,
1323 useValue: {showError: showErrorByDefault},
1324 },
1325 ]);
1326 fixture.detectChanges();
1327 stepper = fixture.debugElement.query(By.css('mat-stepper'))!.componentInstance;
1328 }
1329
1330 it('should show error state', () => {
1331 createFixture(true);

Callers 1

stepper.spec.tsFile · 0.70

Calls 1

createComponentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…