Fix AppComponent test

This commit is contained in:
Manuel Friedli 2018-09-07 11:24:24 +02:00
parent 86574e8616
commit e6b38fabcb

View file

@ -3,8 +3,10 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {InputComponentManagerService} from './input-component-manager.service';
import {Step} from './step';
import {ConverterRegistryService} from './converter-registry.service';
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;
describe('AppComponent', () => {
@ -21,11 +23,16 @@ describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [AppComponent, VersionComponent],
declarations: [
AppComponent,
ConverterSelectorComponent,
ErrorMessageComponent,
TextInputFieldComponent,
VersionComponent
],
imports: [FormsModule],
providers: [
{provide: InputComponentManagerService, useValue: inputComponentManagerServiceStub},
{provide: ConverterRegistryService, useValue: converterRegistryServiceStub}
{provide: InputComponentManagerService, useValue: inputComponentManagerServiceStub}
]
})
.compileComponents();