import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { NO_ERRORS_SCHEMA } from '@angular/core' ; import { NavComponent } from './nav.component' ; describe ( 'NavComponent' , ( ) => { let component ; let fixture ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { declarations : [ NavComponent ] , schemas : [ NO_ERRORS_SCHEMA ] } ) ; fixture = TestBed . createComponent ( NavComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;