Merge pull request #19214 from DefinitelyTyped/redux-actions

redux-actions: Fix tests
This commit is contained in:
Mine Starks
2017-08-29 14:30:32 -07:00
committed by GitHub
+4 -2
View File
@@ -134,10 +134,12 @@ ReduxActions.handleAction(act3, (state, action) => {
return { hello: action.payload.s };
}, {hello: 'greetings'});
ReduxActions.handleAction(ReduxActions.combineActions(act1, act3, act2), (state, action) => {}, 0);
ReduxActions.handleAction(ReduxActions.combineActions(act1, act3, act2), (state, action) => state + 1, 0);
ReduxActions.handleActions({
[ReduxActions.combineActions(act1, act3, act2)](state, action) {}
[ReduxActions.combineActions(act1, act3, act2)](state, action) {
return state + 1;
}
}, 0);
/* can't do this until it lands in 2.2, HKTs