import { Action } from '@ngrx/store' ; import { Observable } from 'rxjs' ; import { BehaviorSubject } from 'rxjs' ; import { map } from 'rxjs/operators' ; export class MockStore < T > extends BehaviorSubject < T > { constructor ( private _initialState ) { super ( _initialState ) ; } dispatch = ( action ) : void => { } ; select = < T , R > ( pathOrMapFn , ... paths ) : Observable < R > => { return map . call ( this , pathOrMapFn ) ; } ; }