import { TestBed , waitForAsync } from '@angular/core/testing' ; import { RouterTestingModule } from '@angular/router/testing' ; import { MatToolbarModule } from '@angular/material/toolbar' ; import { MatTabsModule } from '@angular/material/tabs' ; import { defaultPageScrollConfig , NGXPS_CONFIG } from 'ngx-page-scroll-core' ; import { AppComponent } from './app.component' ; describe ( 'AppComponent' , ( ) => { beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { imports : [ RouterTestingModule , MatToolbarModule , MatTabsModule , ] , declarations : [ AppComponent , ] , providers : [ { provide : NGXPS_CONFIG , useValue : defaultPageScrollConfig } ] , } ) . compileComponents ( ) ; } ) ) ; it ( 'should create the app' , ( ) => { const fixture = TestBed . createComponent ( AppComponent ) ; const app = fixture . componentInstance ; expect ( app ) . toBeTruthy ( ) ; } ) ; } ) ;