1+ import { Component , ViewChild } from '@angular/core' ;
12import { async , ComponentFixture , fakeAsync , TestBed , tick } from '@angular/core/testing' ;
2- import { Component , DebugElement , ViewChild } from '@angular/core' ;
3- import { WizardNavigationBarComponent } from './wizard-navigation-bar.component' ;
4- import { WizardComponent } from './wizard.component' ;
53import { By } from '@angular/platform-browser' ;
64import { ArchwizardModule } from '../archwizard.module' ;
75import { NavigationMode } from '../navigation/navigation-mode.interface' ;
86import { WizardState } from '../navigation/wizard-state.model' ;
7+ import { WizardNavigationBarComponent } from './wizard-navigation-bar.component' ;
8+ import { WizardComponent } from './wizard.component' ;
99
1010@Component ( {
1111 selector : 'aw-test-wizard' ,
1212 template : `
1313 <aw-wizard>
14- <aw-wizard-step stepTitle='Steptitle 1' [stepId]="firstStepId">Step 1</aw-wizard-step>
15- <aw-wizard-step stepTitle='Steptitle 2' awOptionalStep>Step 2</aw-wizard-step>
16- <aw-wizard-step stepTitle='Steptitle 3'>Step 3</aw-wizard-step>
14+ <aw-wizard-step stepTitle='Steptitle 1' [stepId]="firstStepId">
15+ Step 1
16+ </aw-wizard-step>
17+ <aw-wizard-step stepTitle='Steptitle 2' awOptionalStep>
18+ Step 2
19+ </aw-wizard-step>
20+ <aw-wizard-step stepTitle='Steptitle 3'>
21+ Step 3
22+ </aw-wizard-step>
1723 </aw-wizard>
1824 `
1925} )
@@ -528,7 +534,7 @@ describe('WizardNavigationBarComponent', () => {
528534 } ) ;
529535
530536 it ( 'should show the correct step titles' , ( ) => {
531- let navigationLinks = wizardTestFixture . debugElement . queryAll ( By . css ( 'aw-wizard-navigation-bar ul li a' ) ) ;
537+ const navigationLinks = wizardTestFixture . debugElement . queryAll ( By . css ( 'aw-wizard-navigation-bar ul li a' ) ) ;
532538
533539 expect ( navigationLinks . length ) . toBe ( 3 ) ;
534540 expect ( navigationLinks [ 0 ] . nativeElement . innerText ) . toBe ( 'STEPTITLE 1' ) ;
@@ -540,7 +546,7 @@ describe('WizardNavigationBarComponent', () => {
540546 wizardTest . wizard . navBarDirection = 'right-to-left' ;
541547 wizardTestFixture . detectChanges ( ) ;
542548
543- let navigationLinks = wizardTestFixture . debugElement . queryAll ( By . css ( 'aw-wizard-navigation-bar ul li a' ) ) ;
549+ const navigationLinks = wizardTestFixture . debugElement . queryAll ( By . css ( 'aw-wizard-navigation-bar ul li a' ) ) ;
544550
545551 expect ( navigationLinks . length ) . toBe ( 3 ) ;
546552 expect ( navigationLinks [ 0 ] . nativeElement . innerText ) . toBe ( 'STEPTITLE 3' ) ;
0 commit comments