From e4e15a3228bac51a6729b5ea3714f377ca2844c2 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 21 Aug 2017 13:18:11 -0700 Subject: [PATCH] redux-actions: Fix tests --- types/redux-actions/redux-actions-tests.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/redux-actions/redux-actions-tests.ts b/types/redux-actions/redux-actions-tests.ts index 48beb4b0cc..46760e6159 100644 --- a/types/redux-actions/redux-actions-tests.ts +++ b/types/redux-actions/redux-actions-tests.ts @@ -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