import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { Http } from '@angular/http'; import { TranslateModule,TranslateService,TranslateLoader } from '@ngx-translate/core'; import { AppComponent } from './app.component'; describe('AppComponent', () => { let fixture: ComponentFixture; let component: AppComponent; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule, TranslateModule.forRoot() ], declarations: [ AppComponent ], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(AppComponent); component = fixture.componentInstance; }); it('should create the app', async(() => { expect(component).toBeTruthy(); })); });