Add component tests #8
1 changed files with 11 additions and 4 deletions
|
@ -3,8 +3,10 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
|
||||||
import {FormsModule} from '@angular/forms';
|
import {FormsModule} from '@angular/forms';
|
||||||
import {InputComponentManagerService} from './input-component-manager.service';
|
import {InputComponentManagerService} from './input-component-manager.service';
|
||||||
import {Step} from './step';
|
import {Step} from './step';
|
||||||
import {ConverterRegistryService} from './converter-registry.service';
|
|
||||||
import {VersionComponent} from './version/version.component';
|
import {VersionComponent} from './version/version.component';
|
||||||
|
import {ConverterSelectorComponent} from './converter-selector/converter-selector.component';
|
||||||
|
import {TextInputFieldComponent} from './text-input-field/text-input-field.component';
|
||||||
|
import {ErrorMessageComponent} from './error-message/error-message.component';
|
||||||
import createSpyObj = jasmine.createSpyObj;
|
import createSpyObj = jasmine.createSpyObj;
|
||||||
|
|
||||||
describe('AppComponent', () => {
|
describe('AppComponent', () => {
|
||||||
|
@ -21,11 +23,16 @@ describe('AppComponent', () => {
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [AppComponent, VersionComponent],
|
declarations: [
|
||||||
|
AppComponent,
|
||||||
|
ConverterSelectorComponent,
|
||||||
|
ErrorMessageComponent,
|
||||||
|
TextInputFieldComponent,
|
||||||
|
VersionComponent
|
||||||
|
],
|
||||||
imports: [FormsModule],
|
imports: [FormsModule],
|
||||||
providers: [
|
providers: [
|
||||||
{provide: InputComponentManagerService, useValue: inputComponentManagerServiceStub},
|
{provide: InputComponentManagerService, useValue: inputComponentManagerServiceStub}
|
||||||
{provide: ConverterRegistryService, useValue: converterRegistryServiceStub}
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
|
|
Loading…
Reference in a new issue