import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { SharedModule } from '../shared/shared.module' ; import { UserDetailsComponent } from './user-details.component' ; describe ( 'UserDetailsComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ) => { await TestBed . configureTestingModule ( { imports : [ SharedModule ] , declarations : [ UserDetailsComponent ] } ) . compileComponents ( ) ; } ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( UserDetailsComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;