import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ; import { FormToastComponent } from './form-toast.component' ; import { FormToastService } from '../../services/form-toast.service' ; describe ( 'FormToastComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { declarations : [ FormToastComponent ] , providers : [ FormToastService ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( FormToastComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;