Skip to content

Commit 190adc9

Browse files
committed
remove componentWillMount in test
1 parent 329bfa5 commit 190adc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

__tests__/testUtils/MockProvider.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ export default class MockProvider extends Component {
88
controllerMock: PropTypes.object.isRequired,
99
};
1010

11-
componentWillMount() {
12-
this.controller = this.props.controllerMock;
11+
constructor(props) {
12+
super(props);
13+
this.controller = props.controllerMock;
1314
}
1415

1516
componentWillUnmount() {

0 commit comments

Comments
 (0)