All files / src/store store.mock.js

100% Statements 14/14
100% Branches 4/4
100% Functions 2/2
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 175x               20x 11x           5x  
// @flow
import createStore from 'redux-mock-store'
import thunkMiddleware from 'redux-thunk'
 
import {middleware as fetch} from '../fetch'
import multi from './multi'
import promise from './promise'
 
export default function configureStore (rootReducer, initialState) {
  return createStore([
    fetch,
    multi,
    promise,
    thunkMiddleware
  ])(initialState)
}