All files / src createReducer.js

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 3/3
1 2 3 4 5 6 7 8 9        9x 9x   9x  
import createModelReducer from './model/modelReducer'
import {combineReducers} from 'redux'
 
export default (models)  => {
  const reducers = {};
  models.forEach(model => reducers[model.modelName] = createModelReducer(model) )
 
  return combineReducers(reducers)
}