UNPKG

angular2-wizard-angular-material

Version:

This is an Angular2 Form Wizard component. Just like any form wizard. You can define steps and control how each step works. You can enable/disable navigation button based on validity of the current step. Currently, the component only support basic functio

29 lines (21 loc) 771 B
import { TestBed } from '@angular/core/testing'; import { WizardStepComponent } from './wizard-step.component'; import { FormWizardModule } from '../index'; describe('Wizard Step Component', () => { beforeEach(() => { TestBed.configureTestingModule({ imports: [FormWizardModule] }); }); beforeEach(() => { TestBed.compileComponents(); }); describe('when create wizard step', () => { it('should have a title', () => { let fixture = TestBed.createComponent(WizardStepComponent); fixture.componentInstance.title = 'Step1'; fixture.detectChanges(); expect(fixture.componentInstance.title).toBe('Step1'); }); }); });