Add component tests #8

Merged
manuel merged 11 commits from feature/collapsible-intermediate-input into develop 2018-09-07 12:49:20 +02:00
Showing only changes of commit e6b38fabcb - Show all commits

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();