import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { RouterTestingModule } from '@angular/router/testing' ; import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ; import { ContentModule } from '@alfresco/adf-content-services' ; import { ProcessServicesCloudModule } from '@alfresco/adf-process-services-cloud' ; import { CoreModule , AppConfigService , AppConfigServiceMock , TranslateLoaderService } from '@alfresco/adf-core' ; import { LoginComponent } from './login.component' ; import { AlfrescoApiService , AlfrescoApiServiceMock } from '@alfresco/adf-core' ; import { TranslateModule , TranslateLoader } from '@ngx-translate/core' ; describe ( 'LoginComponent' , ( ) => { let component ; let fixture ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { imports : [ RouterTestingModule , BrowserAnimationsModule , CoreModule . forRoot ( ) , ContentModule . forRoot ( ) , ProcessServicesCloudModule , TranslateModule . forRoot ( { loader : { provide : TranslateLoader , useClass : TranslateLoaderService } } ) ] , declarations : [ LoginComponent ] , providers : [ { provide : AlfrescoApiService , useClass : AlfrescoApiServiceMock } , { provide : AppConfigService , useClass : AppConfigServiceMock } ] } ) ; fixture = TestBed . createComponent ( LoginComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeDefined ( ) ; } ) ; } ) ;