All files / reducers ApplicationsReducer.js

100% Statements 5/5
100% Branches 5/5
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16        4x   1x   1x   1x   1x      
import { request, invalidate, receive, initState } from '../boilerplate';
import { REQUEST_APPLICATIONS, RECEIVE_APPLICATIONS, INVALIDATE_APPLICATIONS } from '../actionTypes';
 
export default function(state = initState, action) {
  switch (action.type) {
    case REQUEST_APPLICATIONS:
      return request(state, action);
    case RECEIVE_APPLICATIONS:
      return receive(state, action);
    case INVALIDATE_APPLICATIONS:
      return invalidate(state, action);
    default:
      return state;
  }
}