All files / src/reducers horsemanRouteReducer.js

100% Statements 4/4
100% Branches 3/3
100% Functions 1/1
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16    2x     3x   1x       2x        
import * as types from "../constants/ActionTypes";
 
const initialState = {};
 
export default function routes(state = initialState, action) {
  switch (action.type) {
    case types.SAVE_ROUTES: {
      return action.routes;
    }
 
    default: {
      return state;
    }
  }
}