All files / src/app/store/reducers root.reducer.ts

100% Statements 11/11
50% Branches 1/2
100% Functions 1/1
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22    1x   1x 1x 1x 1x 1x 1x 1x   1x                  
import { Action, Reducer } from 'redux';
 
import { IAppState, appInitialState } from '../state/AppState';
 
import { measureReducer } from './measure.reducer';
import { pageReducer } from './page.reducer';
import { configReducer } from './config.reducer';
import { searchReducer } from './search.reducer';
import { userReducer } from './user.reducer';
import { uiReducer } from './ui.reducer';
import { fileReducer } from './file.reducer';
 
export const rootReducer = (Istate: IAppState = appInitialState, action) => Object.assign({}, state, {
  config: configReducer(state.config, action),
  measures: measureReducer(state.measures, action),
  pages: pageReducer(state.pages, action),
  search: searchReducer(state.search, action),
  ui: uiReducer(state.ui, action),
  user: userReducer(state.user, action),
  file: fileReducer(state.file, action)
});