import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ; import { AppNavComponent } from './app-nav.component' ; import { NgSqCommonModule } from '@sq-ui/ng-sq-common' ; import { CommonModule } from '@angular/common' ; import { RouterTestingModule } from '@angular/router/testing' ; describe ( 'AppNavComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ AppNavComponent ] , imports : [ RouterTestingModule , NgSqCommonModule , CommonModule ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( AppNavComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;