import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { RouterModule } from '@angular/router' ; import { JoinDialogComponent } from './join-dialog.component' ; describe ( 'JoinDialogComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { imports : [ RouterModule . forRoot ( [ ] ) ] , declarations : [ JoinDialogComponent ] , } ) . compileComponents ( ) ; fixture = TestBed . createComponent ( JoinDialogComponent ) ; component = fixture . componentInstance ; } ) ) ; it ( 'Should create the component' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;