import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { AuthModalComponent } from './auth-modal.component' ; import { SiteService } from '../../../common/services/site.service' ; import { MockComponent , MockService } from '../../../utils/mock' ; describe ( 'AuthModalComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ AuthModalComponent , MockComponent ( { selector : 'minds-form-register' , inputs : [ 'showTitle' , 'showBigButton' , 'showLabels' , 'showPromotions' , 'showInlineErrors' , ] , } ) , ] , providers : [ { provide : SiteService , useValue : MockService ( SiteService ) } , ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( AuthModalComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;