11import 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'
35import ReactDOM from 'react-dom'
4- import TestUtils from 'react-addons- test-utils'
6+ import TestUtils from 'react-dom/ test-utils'
57import { createStore } from 'redux'
68import { connect } from '../../src/index'
79
810describe ( 'React' , ( ) => {
911 describe ( 'connect' , ( ) => {
1012 class Passthrough extends Component {
1113 render ( ) {
12- return < div { ... this . props } />
14+ return < div />
1315 }
1416 }
1517
@@ -1381,7 +1383,7 @@ describe('React', () => {
13811383 }
13821384
13831385 ImpureComponent . contextTypes = {
1384- statefulValue : React . PropTypes . number
1386+ statefulValue : PropTypes . number
13851387 }
13861388
13871389 const decorator = connect ( state => state , null , null , { pure : false } )
@@ -1405,7 +1407,7 @@ describe('React', () => {
14051407 }
14061408
14071409 StatefulWrapper . childContextTypes = {
1408- statefulValue : React . PropTypes . number
1410+ statefulValue : PropTypes . number
14091411 }
14101412
14111413 const tree = TestUtils . renderIntoDocument (
@@ -1727,7 +1729,7 @@ describe('React', () => {
17271729 updatedCount ++
17281730 }
17291731 render ( ) {
1730- return < div { ... this . props } />
1732+ return < div />
17311733 }
17321734 }
17331735
0 commit comments