mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-14 15:09:59 -04:00
use mergeProps to make tests work
This commit is contained in:
parent
45629620b3
commit
9ea6cc8d42
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue