File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-unused-vars */
2
2
import expect from 'expect'
3
- import React , { createClass , Component } from 'react'
3
+ import React , { Component } from 'react'
4
4
import TestUtils from 'react-addons-test-utils'
5
5
import PropTypes from 'prop-types'
6
6
import { connect , PromiseState } from '../../src/index'
@@ -1679,23 +1679,6 @@ describe('React', () => {
1679
1679
}
1680
1680
}
1681
1681
) . displayName ) . toBe ( 'Refetch.connect(Foo)' )
1682
-
1683
- expect ( connect ( state => state ) (
1684
- createClass ( {
1685
- displayName : 'Bar' ,
1686
- render ( ) {
1687
- return < div />
1688
- }
1689
- } )
1690
- ) . displayName ) . toBe ( 'Refetch.connect(Bar)' )
1691
-
1692
- expect ( connect ( state => state ) (
1693
- createClass ( {
1694
- render ( ) {
1695
- return < div />
1696
- }
1697
- } )
1698
- ) . displayName ) . toBe ( 'Refetch.connect(Component)' )
1699
1682
} )
1700
1683
1701
1684
it ( 'should expose the wrapped component as WrappedComponent' , ( ) => {
You can’t perform that action at this time.
0 commit comments