redux-observable Promise is not getting resolved in unit test
问题 I am trying to test this epic https://github.com/zarcode/unsplashapp/blob/master/src/epics/photos.js . Problem is that map never happens when I run test (which I assume means that Promise never resolves), so photosSuccess action never happens also: export const loadPhotosToList = (action$: Observable<Action>, state$: Object): Observable<Action> => { const state = (photosFilter: PhotosFilter) => state$.value.photos[photosFilter]; return action$ // .ofType(ACTION.FETCH_PHOTOS_REQUESTED) .pipe(