(state = initialState, action)
| 236 | fourthRun: false, |
| 237 | }; |
| 238 | const reducer = (state = initialState, action) => { |
| 239 | switch (action.type) { |
| 240 | case 'FIRST_ACTION': |
| 241 | return loop(state, Cmd.run(thunk, { args: [Cmd.dispatch] })); |
| 242 | |
| 243 | case 'DOWNSTREAM_ACTION': |
| 244 | return { ...state, secondRun: true }; |
| 245 | |
| 246 | default: |
| 247 | return state; |
| 248 | } |
| 249 | }; |
| 250 | const store = createStore(reducer, initialState, install()); |
| 251 | |
| 252 | store.dispatch(firstAction).then((result) => { |
no test coverage detected