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

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13  1x 1x 1x   1x   1x     44x    
import { Action, Reducer } from 'redux';
import { GenericReducerFactory } from './generic.reducer';
import { PageState, PageStateRoot, pagesInitialState } from '../state/page.state';
import { PageActions } from '../../linqpad-review-pages/common/page.actions';
 
const factory = new GenericReducerFactory();
 
export const pageReducer: Reducer<PageStateRoot>  = factory.createReducer({
  initialState: pagesInitialState,
  handledActions: PageActions.ACTIONS,
  actionQualifierConfig: (action) => `[PAGE] ${action.type} / ${action.subState}`
});