import { applyMiddleware, createStore } from 'redux'
import reducer from '../../src/reducer'

export default ({ middleware, initialState = {} }) =>
  createStore(reducer, initialState, applyMiddleware(middleware))

import { applyMiddleware, combineReducers, createStore } from 'redux'
import reducer from '../../src/reducer'

export default ({ middleware, initialState = {} }) =>
  createStore(
    combineReducers({ session: reducer }),
    initialState,
    applyMiddleware(middleware)
  )

Use combine reducers in test store
Use combine reducers in test store
