UNPKG

angular-wizard-form

Version:

<!-- [![npm version](https://badge.fury.io/js/angular2-wizard.svg)](https://badge.fury.io/js/angular2-wizard) --> <!-- [![Build Status](https://travis-ci.org/maiyaporn/angular2-wizard.svg?branch=master)](https://travis-ci.org/maiyaporn/angular2-wizard) --

29 lines (21 loc) 743 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'); }); }); });