This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { actions } from 'ducks.js'; | |
| // etc....... | |
| const mapDispatchToProps = { | |
| fetchTodos: actions.fetchTodos.request // <--------- | |
| } | |
| // etc....... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { actions } from 'ducks.js'; | |
| // etc....... | |
| const mapDispatchToProps = { | |
| fetchTodos: actions.fetchTodos.request // <--------- | |
| } | |
| // etc....... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { Provider } from 'react-redux'; | |
| import { Router } from 'react-router-dom'; | |
| import { createMemoryHistory } from 'history'; | |
| import { render } from '@testing-library/react'; | |
| import configureStore from 'redux-mock-store'; | |
| import thunk from 'redux-thunk'; | |
| const mockStore = configureStore([thunk]); |