Skip to content

Commit 94f0b8a

Browse files
committed
Remove usage of UNSAFE_componentWillMount in test
1 parent 20de413 commit 94f0b8a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/components/connect.spec.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,10 +2120,6 @@ describe('React', () => {
21202120

21212121
@connect(null)
21222122
class Parent extends React.Component {
2123-
UNSAFE_componentWillMount() {
2124-
this.props.dispatch({ type: 'fetch' })
2125-
}
2126-
21272123
componentWillUnmount() {
21282124
this.props.dispatch({ type: 'clean' })
21292125
}
@@ -2143,6 +2139,7 @@ describe('React', () => {
21432139
}
21442140

21452141
const store = createStore(reducer)
2142+
store.dispatch({ type: 'fetch' })
21462143
const div = document.createElement('div')
21472144
ReactDOM.render(
21482145
<ProviderMock store={store}>

0 commit comments

Comments
 (0)