Manuel Friedli
7b574d42df
All checks were successful
continuous-integration/drone the build was successful
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import {AppComponent} from './app.component';
|
|
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
|
|
import {FormsModule} from '@angular/forms';
|
|
import {Step} from './step';
|
|
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';
|
|
|
|
describe('AppComponent', () => {
|
|
let sut: AppComponent;
|
|
let fixture: ComponentFixture<AppComponent>;
|
|
const firstStep: Step = new Step(0);
|
|
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
declarations: [
|
|
AppComponent,
|
|
ConverterSelectorComponent,
|
|
ErrorMessageComponent,
|
|
TextInputFieldComponent,
|
|
VersionComponent
|
|
],
|
|
imports: [FormsModule]
|
|
})
|
|
.compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(AppComponent);
|
|
sut = fixture.componentInstance;
|
|
});
|
|
|
|
it('should create the app', async(() => {
|
|
// const fixture = TestBed.createComponent(AppComponent);
|
|
const app = fixture.debugElement.componentInstance;
|
|
expect(app).toBeTruthy();
|
|
}));
|
|
});
|