Skip to content

Commit fa2c20b

Browse files
committed
Remove tests using create-react-class
1 parent 6861f9d commit fa2c20b

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

test/components/connect.spec.tsx

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*eslint-disable react/prop-types*/
22

33
import React, { Component, MouseEvent } from 'react'
4-
import createClass from 'create-react-class'
54
import { createStore, applyMiddleware } from 'redux'
65
import { Provider as ProviderMock, connect } from '../../src/index'
76
import * as rtl from '@testing-library/react'
@@ -1842,31 +1841,6 @@ describe('React', () => {
18421841
}
18431842
).displayName
18441843
).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)')
18701844
})
18711845

18721846
it('should expose the wrapped component as WrappedComponent', () => {

0 commit comments

Comments
 (0)