1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 23:58:06 +01:00
metamask-extension/test/lib/mock-store.js
2020-01-29 13:45:16 -03:30

13 lines
349 B
JavaScript

import { applyMiddleware, createStore } from 'redux'
import thunkMiddleware from 'redux-thunk'
const rootReducer = function () {}
export default configureStore
const createStoreWithMiddleware = applyMiddleware(thunkMiddleware)(createStore)
function configureStore (initialState) {
return createStoreWithMiddleware(rootReducer, initialState)
}