import { TestBed , async , inject } from '@angular/core/testing' ; import { UnauthGuard } from './unauth.guard' ; describe ( 'UnauthGuard' , ( ) => { beforeEach ( ( ) => { TestBed . configureTestingModule ( { providers : [ UnauthGuard ] } ) ; } ) ; it ( 'should ...' , inject ( [ UnauthGuard ] , ( guard ) => { expect ( guard ) . toBeTruthy ( ) ; } ) ) ; } ) ;