import { CommonModule } from '@angular/common' ; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core' ; import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { RouterModule } from '@angular/router' ; import { DashboardComponent } from './dashboard.component' ; describe ( 'DashboardComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ DashboardComponent ] , imports : [ CommonModule , RouterModule , ] , schemas : [ CUSTOM_ELEMENTS_SCHEMA ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( DashboardComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should be created' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;