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

Function createFixture

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

Source from the content-addressed store, hash-verified

1335 let stepper: MatStepper;
1336
1337 function createFixture(showErrorByDefault: boolean | undefined) {
1338 fixture = createComponent(MatHorizontalStepperWithErrorsApp, [
1339 {
1340 provide: STEPPER_GLOBAL_OPTIONS,
1341 useValue: {showError: showErrorByDefault},
1342 },
1343 ]);
1344 fixture.detectChanges();
1345 stepper = fixture.debugElement.query(By.css('mat-stepper'))!.componentInstance;
1346 }
1347
1348 it('should show error state', () => {
1349 createFixture(true);

Callers 1

stepper.spec.tsFile · 0.70

Calls 1

createComponentFunction · 0.70

Tested by

no test coverage detected