2 configurableViewsActionTypes
3 } from 'app/configurableViews/ConfigurableViewConstants.js';
4 import ConfigurableViewReducer from 'app/configurableViews/ConfigurableViewReducer.js'
5 describe('ConfigurableViewsReducerTests', () => {
6 it('Action Type: CONFIGURABLE_VIEWS_CONFIG_RECEIVED', () => {
9 viewName: 'Some View Name',
10 viewRoute: 'some/view/route'
13 type: configurableViewsActionTypes.CONFIGURABLE_VIEWS_CONFIG_RECEIVED,
17 state = ConfigurableViewReducer(state, action);
18 expect(state).toEqual({
19 configurableViewsConfig: data
23 it('Action Type: CUSTOM_COMPONENTS_RECEIVED', () => {
25 componentName: 'someComponentName',
32 type: configurableViewsActionTypes.CUSTOM_COMPONENTS_RECEIVED,
36 state = ConfigurableViewReducer(state, action);
37 expect(state).toEqual({
38 customComponents: data
42 it('Action Type: CUSTOM_ROUTES', () => {
43 const data = 'some/custom/route';
45 type: configurableViewsActionTypes.CUSTOM_ROUTES,
49 state = ConfigurableViewReducer(state, action);
50 expect(state).toEqual({