import { TestBed } from '@angular/core/testing' ; import { provideMockActions } from '@ngrx/effects/testing' ; import { Observable , of } from 'rxjs' ; import { AppEffects } from './app.effects' ; describe ( 'AppEffects' , ( ) => { let actions$ ; let effects ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { providers : [ AppEffects , provideMockActions ( ( ) => actions$ ) ] } ) ; effects = TestBed . inject ( AppEffects ) ; } ) ; it ( 'should be created' , ( ) => { expect ( effects ) . toBeTruthy ( ) ; } ) ; it ( 'has an action' , ( ) => { actions$ = of ( { type : 'Action One' } ) ; } ) ; } ) ;