@@ -4,19 +4,18 @@ import {
4
4
routerStateReducer
5
5
} from '../' ;
6
6
7
- import React , { Component , PropTypes } from 'react/addons' ;
8
- import { Provider , connect } from 'react-redux' ;
9
- import { createStore , combineReducers } from 'redux' ;
10
- import createHistory from 'history/lib/createMemoryHistory' ;
11
- import { Link , Route } from 'react-router' ;
12
- import jsdom from './jsdom' ;
13
-
14
- const {
7
+ import React , { Component , PropTypes } from 'react' ;
8
+ import {
15
9
renderIntoDocument ,
16
10
findRenderedComponentWithType ,
17
11
findRenderedDOMComponentWithTag ,
18
12
Simulate
19
- } = React . addons . TestUtils ;
13
+ } from 'react-addons-test-utils' ;
14
+ import { Provider , connect } from 'react-redux' ;
15
+ import { createStore , combineReducers } from 'redux' ;
16
+ import createHistory from 'history/lib/createMemoryHistory' ;
17
+ import { Link , Route } from 'react-router' ;
18
+ import jsdom from 'mocha-jsdom' ;
20
19
21
20
@connect ( state => state . router )
22
21
class App extends Component {
@@ -78,9 +77,9 @@ describe('<ReduxRouter>', () => {
78
77
history . pushState ( null , '/parent/child/123?key=value' ) ;
79
78
80
79
return renderIntoDocument (
81
- < Provider store = { store } > { ( ) =>
80
+ < Provider store = { store } >
82
81
< ReduxRouter />
83
- } </ Provider >
82
+ </ Provider >
84
83
) ;
85
84
}
86
85
0 commit comments