1
1
import expect from 'expect'
2
- import React , { createClass , Children , PropTypes , Component } from 'react'
2
+ import React , { Children , Component } from 'react'
3
+ import createClass from 'create-react-class'
4
+ import PropTypes from 'prop-types'
3
5
import ReactDOM from 'react-dom'
4
- import TestUtils from 'react-addons- test-utils'
6
+ import TestUtils from 'react-dom/ test-utils'
5
7
import { createStore } from 'redux'
6
8
import { connect } from '../../src/index'
7
9
8
10
describe ( 'React' , ( ) => {
9
11
describe ( 'connect' , ( ) => {
10
12
class Passthrough extends Component {
11
13
render ( ) {
12
- return < div { ... this . props } />
14
+ return < div />
13
15
}
14
16
}
15
17
@@ -1381,7 +1383,7 @@ describe('React', () => {
1381
1383
}
1382
1384
1383
1385
ImpureComponent . contextTypes = {
1384
- statefulValue : React . PropTypes . number
1386
+ statefulValue : PropTypes . number
1385
1387
}
1386
1388
1387
1389
const decorator = connect ( state => state , null , null , { pure : false } )
@@ -1405,7 +1407,7 @@ describe('React', () => {
1405
1407
}
1406
1408
1407
1409
StatefulWrapper . childContextTypes = {
1408
- statefulValue : React . PropTypes . number
1410
+ statefulValue : PropTypes . number
1409
1411
}
1410
1412
1411
1413
const tree = TestUtils . renderIntoDocument (
@@ -1727,7 +1729,7 @@ describe('React', () => {
1727
1729
updatedCount ++
1728
1730
}
1729
1731
render ( ) {
1730
- return < div { ... this . props } />
1732
+ return < div />
1731
1733
}
1732
1734
}
1733
1735
0 commit comments