import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { ProfileComponent } from './profile.component' ; import { ReactiveFormsModule , FormsModule } from '@angular/forms' ; import { SharedModule } from '@shared/shared.module' ; import { NgxsModule } from '@ngxs/store' ; import { NoopAnimationsModule } from '@angular/platform-browser/animations' ; describe ( 'ProfileComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ ProfileComponent ] , imports : [ ReactiveFormsModule , FormsModule , SharedModule , NgxsModule . forRoot ( ) , NoopAnimationsModule ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ProfileComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;