import { fakeAsync , ComponentFixture , TestBed } from '@angular/core/testing' ; import { MatSidenavModule } from '@angular/material/sidenav' ; import { NavComponent } from './nav.component' ; describe ( 'NavComponent' , ( ) => { let component ; let fixture ; beforeEach ( fakeAsync ( ( ) => { TestBed . configureTestingModule ( { imports : [ MatSidenavModule ] , declarations : [ NavComponent ] } ) . compileComponents ( ) ; fixture = TestBed . createComponent ( NavComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ) ; it ( 'should compile' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;