redux-actions: Fix tests

This commit is contained in:
Andy Hanson
2017-08-21 13:18:11 -07:00
parent 49beb4b010
commit e4e15a3228

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