redux-test
1.0.0 • Public • Published redux-test
Create a redux-like store for testing
import createTestStore from 'redux-test';
const store = createTestStore({some: 'state'});
store.dispatch() // => call sinon spy
store.getState() // => call sinon stub and return {some: 'state'}
store.subscribe() // => call sinon spy
MIT license
Package Sidebar
Install
Weekly Downloads