From e6b38fabcbb5b10a0b74a76f56db072447f0b9ac Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Fri, 7 Sep 2018 11:24:24 +0200 Subject: [PATCH] Fix AppComponent test --- src/app/app.component.spec.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 36d8222..18d20b6 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -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();