import { ComponentFixture , TestBed , async } from '@angular/core/testing' ; import { TranslatePipe } from '@ngx-translate/core' ; import { MockComponents , MockPipes } from 'ng-mocks' ; import { AuthLoginButtonComponent } from '@medium-stories/auth' ; import { UserLoadButtonComponent } from '@medium-stories/users' ; import { HomeComponent } from './home.component' ; describe ( 'HomeComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ HomeComponent , MockComponents ( UserLoadButtonComponent , AuthLoginButtonComponent ) , MockPipes ( TranslatePipe ) ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( HomeComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;