use mergeProps to make tests work

This commit is contained in:
Ben Wheeler 2019-09-04 23:33:43 -04:00
parent 45629620b3
commit 9ea6cc8d42

View file

@ -162,9 +162,15 @@ const mapDispatchToProps = dispatch => ({
}
});
// Allow incoming props to override redux-provided props. Used to mock in tests.
const mergeProps = (stateProps, dispatchProps, ownProps) => Object.assign(
{}, stateProps, dispatchProps, ownProps
);
const ConnectedJoinFlow = connect(
() => ({}),
mapDispatchToProps
mapDispatchToProps,
mergeProps
)(IntlJoinFlow);
module.exports = ConnectedJoinFlow;