File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 1
1
/*eslint-disable react/prop-types*/
2
2
3
3
import React , { Component , MouseEvent } from 'react'
4
- import createClass from 'create-react-class'
5
4
import { createStore , applyMiddleware } from 'redux'
6
5
import { Provider as ProviderMock , connect } from '../../src/index'
7
6
import * as rtl from '@testing-library/react'
@@ -1842,31 +1841,6 @@ describe('React', () => {
1842
1841
}
1843
1842
) . displayName
1844
1843
) . toBe ( 'Connect(Foo)' )
1845
-
1846
- expect (
1847
- connect ( ( state ) => state ) (
1848
- createClass ( {
1849
- displayName : 'Bar' ,
1850
- render ( ) {
1851
- return < div />
1852
- } ,
1853
- } )
1854
- ) . displayName
1855
- ) . toBe ( 'Connect(Bar)' )
1856
-
1857
- expect (
1858
- connect ( ( state ) => state ) (
1859
- // eslint: In this case, we don't want to specify a displayName because we're testing what
1860
- // happens when one isn't defined.
1861
- /* eslint-disable react/display-name */
1862
- createClass ( {
1863
- render ( ) {
1864
- return < div />
1865
- } ,
1866
- } )
1867
- /* eslint-enable react/display-name */
1868
- ) . displayName
1869
- ) . toBe ( 'Connect(Component)' )
1870
1844
} )
1871
1845
1872
1846
it ( 'should expose the wrapped component as WrappedComponent' , ( ) => {
You can’t perform that action at this time.
0 commit comments