import { Overlay } from '@angular/cdk/overlay' ; import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { MatDialog , MatDialogModule } from '@angular/material/dialog' ; import { MatSnackBar , MatSnackBarModule } from '@angular/material/snack-bar' ; import { Ng2UiAuthModule } from 'np2-ui-auth' ; import { SettingsService } from 'src/app/core/settings' ; import { UiService } from 'src/app/core/ui' ; import { ProfileComponent } from './profile.component' ; describe ( 'ProfileComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ ProfileComponent ] , imports : [ MatDialogModule , Ng2UiAuthModule . forRoot ( ) ] , providers : [ MatSnackBar , Overlay , SettingsService , UiService ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ProfileComponent ) ; component = fixture . componentInstance ; } ) ; it ( 'Should create the component' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;