import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { LoginComponent } from './login.component' ; import { ReactiveFormsModule } from '@angular/forms' ; import { HttpClientTestingModule } from '@angular/common/http/testing' ; import { RouterTestingModule } from '@angular/router/testing' ; describe ( 'LoginComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : [ ReactiveFormsModule , HttpClientTestingModule , RouterTestingModule ] , declarations : [ LoginComponent ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( LoginComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;