fixed code smells and added some more tests

This commit is contained in:
Sebastian Sdorra
2018-07-30 15:51:45 +02:00
parent b825de3058
commit cba3fc38e6
6 changed files with 45 additions and 9 deletions

View File

@@ -28,7 +28,10 @@ export const LOGOUT_FAILURE = `${LOGOUT}_${types.FAILURE_SUFFIX}`;
const initialState = {};
export default function reducer(state: Object = initialState, action: Object) {
export default function reducer(
state: Object = initialState,
action: Object = { type: "UNKNOWN" }
) {
switch (action.type) {
case LOGIN_SUCCESS:
case FETCH_ME_SUCCESS: