Refactor main.js into namespaced models; add tests for effects/reducersSee original GitHub issue
As per discussion in #190, we should be able to add unit tests for effects and reducers. Before we can do this, I think it would make sense to break apart the monolithic model in main.js. I think we can do this simply by creating 2 namespaced models,
address (to avoid confusion with the special
location namespace choo provides for interacting with the
window.location object), and then just keep a barebones set of initialization logic in the top level model.
Once that is done, we can start filling in unit tests for our reducers and effects.
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top GitHub Comments
This is resolved now that we’re moving to react, no more monolithic main.js