UNPKG

ignite-router-flux

Version:

Infinite Red's hot boilerplate for React Native.

13 lines (10 loc) 466 B
import { select, put } from 'redux-saga/effects' import { selectAvatar, startup } from '../../App/Sagas/StartupSagas' import GithubActions from '../../App/Redux/GithubRedux' const stepper = (fn) => (mock) => fn.next(mock).value test('watches for the right action', () => { const step = stepper(startup()) GithubActions.userRequest('GantMan') expect(step()).toEqual(select(selectAvatar)) expect(step()).toEqual(put(GithubActions.userRequest('GantMan'))) })