From 5633fff1a647dcdb0cb2ba5fa43261dbcb50f956 Mon Sep 17 00:00:00 2001 From: Homa Wong Date: Fri, 18 Nov 2016 15:13:34 -0800 Subject: [PATCH] Write test correctly to avoid confusion --- test/typings-test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/typings-test.ts b/test/typings-test.ts index 722a270..4777564 100644 --- a/test/typings-test.ts +++ b/test/typings-test.ts @@ -20,15 +20,15 @@ function createCustomAction(payload: CustomPayload): FluxStandardAction): action is FluxStandardAction { - return action.type === 'custom' + return isFSA(action) && action.type === 'custom' } function isCustomAction2(action: FluxStandardAction): action is FluxStandardAction { - return action.type === 'custom2' + return isFSA(action) && action.type === 'custom2' } function isCustomAction3(action: any): action is FluxStandardAction { - return action.type === 'custom3' + return isFSA(action) && action.type === 'custom3' } function reducer(state, action) {