Fix tests for react-router-redux

This commit is contained in:
Karol Janyst
2017-02-13 14:54:19 +09:00
parent a5558e3b48
commit cf976fac19
2 changed files with 4 additions and 4 deletions
@@ -1,5 +1,5 @@
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { createBrowserHistory } from 'history';
import { createHistory } from 'history';
import {
syncHistoryWithStore,
routerReducer,
@@ -15,7 +15,7 @@ import {
const reducer = combineReducers({ routing: routerReducer });
// Apply the middleware to the store
const browserHistory = createBrowserHistory()
const browserHistory = createHistory()
const middleware = routerMiddleware(browserHistory);
const store = createStore(
reducer,
@@ -1,11 +1,11 @@
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { createBrowserHistory } from 'history';
import { createHistory } from 'history';
import { syncHistory, routeReducer } from 'react-router-redux';
const reducer = combineReducers({ routing: routeReducer });
// Sync dispatched route actions to the history
const browserHistory = createBrowserHistory()
const browserHistory = createHistory()
const reduxRouterMiddleware = syncHistory(browserHistory);
const createStoreWithMiddleware = applyMiddleware(reduxRouterMiddleware)(createStore);