2017-04-15 19:04:49 +02:00
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
|
|
|
|
import {InputComponentManagerService} from './inputcomponentmanager.service';
|
|
|
|
import {Step} from './step';
|
2017-04-08 00:24:44 +02:00
|
|
|
|
|
|
|
describe('AppComponent', () => {
|
2017-04-15 18:13:58 +02:00
|
|
|
let sut: AppComponent;
|
|
|
|
let fixture: ComponentFixture<AppComponent>;
|
|
|
|
const firstStep: Step = new Step(0);
|
|
|
|
|
|
|
|
const inputComponentManagerServiceStub = {
|
|
|
|
getFirst: () => {
|
|
|
|
return firstStep;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-04-08 00:24:44 +02:00
|
|
|
beforeEach(async(() => {
|
2017-04-15 18:13:58 +02:00
|
|
|
/*return */
|
2017-04-08 00:24:44 +02:00
|
|
|
TestBed.configureTestingModule({
|
2017-04-15 18:13:58 +02:00
|
|
|
declarations: [AppComponent],
|
|
|
|
providers: [{
|
|
|
|
provide: InputComponentManagerService, useValue: inputComponentManagerServiceStub
|
|
|
|
}]
|
|
|
|
})
|
|
|
|
.compileComponents();
|
2017-04-08 00:24:44 +02:00
|
|
|
}));
|
|
|
|
|
2017-04-15 18:13:58 +02:00
|
|
|
beforeEach(() => {
|
|
|
|
fixture = TestBed.createComponent(AppComponent);
|
|
|
|
sut = fixture.componentInstance;
|
|
|
|
});
|
|
|
|
// beforeEach(async(() => {
|
|
|
|
// TestBed.configureTestingModule({
|
|
|
|
// imports: [
|
|
|
|
// RouterTestingModule
|
|
|
|
// ],
|
|
|
|
// declarations: [
|
|
|
|
// AppComponent
|
|
|
|
// ],
|
|
|
|
// }).compileComponents();
|
|
|
|
// }));
|
|
|
|
|
|
|
|
it('should be true that true is true', () => {
|
|
|
|
expect(true).toBe(true);
|
|
|
|
});
|
|
|
|
|
|
|
|
// it('should create the app', async(() => {
|
|
|
|
// const fixture = TestBed.createComponent(AppComponent);
|
|
|
|
// const app = fixture.debugElement.componentInstance;
|
|
|
|
// expect(app).toBeTruthy();
|
|
|
|
// }));
|
|
|
|
|
|
|
|
|
2017-04-08 00:24:44 +02:00
|
|
|
});
|