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