import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { SidenavComponent } from './sidenav.component' ; import { SharedModule } from '@app/shared/shared.module' ; import { RouterTestingModule } from '@angular/router/testing' ; import { NoopAnimationsModule } from '@angular/platform-browser/animations' ; describe ( 'SidenavComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ SidenavComponent ] , imports : [ SharedModule , RouterTestingModule , NoopAnimationsModule ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( SidenavComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;