(showErrorByDefault: boolean | undefined)
| 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); |
no test coverage detected