diff options
author | 2019-03-26 16:47:06 +0100 | |
---|---|---|
committer | 2019-03-26 16:47:06 +0100 | |
commit | b0f2f345cc2d1cc3812ad8a06fc1898daf5842d0 (patch) | |
tree | e6022e92e026a02912548e313ff2a02b5c27ddec /test/configurableViews/ConfigurableViewReducer.test.js | |
parent | b2c7546f9027099161aeaf5791f1d0f3a52b92d2 (diff) |
Remove unused code
Remove unsed code from generic-components and change tests directory structure to reflect src structure
Change-Id: Iada2efb0f7cfb05557eb7cd709b8a0ed75976b03
Issue-ID: AAI-1618
Signed-off-by: awudzins <adam.wudzinski@nokia.com>
Diffstat (limited to 'test/configurableViews/ConfigurableViewReducer.test.js')
-rw-r--r-- | test/configurableViews/ConfigurableViewReducer.test.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/test/configurableViews/ConfigurableViewReducer.test.js b/test/configurableViews/ConfigurableViewReducer.test.js deleted file mode 100644 index 0c5c46e..0000000 --- a/test/configurableViews/ConfigurableViewReducer.test.js +++ /dev/null @@ -1,54 +0,0 @@ -import { - configurableViewsActionTypes -} from 'app/configurableViews/ConfigurableViewConstants.js'; -import ConfigurableViewReducer from 'app/configurableViews/ConfigurableViewReducer.js' -describe('ConfigurableViewsReducerTests', () => { - it('Action Type: CONFIGURABLE_VIEWS_CONFIG_RECEIVED', () => { - const data = { - viewId: 'someViewId', - viewName: 'Some View Name', - viewRoute: 'some/view/route' - }; - const action = { - type: configurableViewsActionTypes.CONFIGURABLE_VIEWS_CONFIG_RECEIVED, - data: data - }; - let state = {}; - state = ConfigurableViewReducer(state, action); - expect(state).toEqual({ - configurableViewsConfig: data - }); - }); - - it('Action Type: CUSTOM_COMPONENTS_RECEIVED', () => { - const data = { - componentName: 'someComponentName', - componentData: { - blah: 'blah', - filler: 'filler' - } - }; - const action = { - type: configurableViewsActionTypes.CUSTOM_COMPONENTS_RECEIVED, - data: data - }; - let state = {}; - state = ConfigurableViewReducer(state, action); - expect(state).toEqual({ - customComponents: data - }); - }); - - it('Action Type: CUSTOM_ROUTES', () => { - const data = 'some/custom/route'; - const action = { - type: configurableViewsActionTypes.CUSTOM_ROUTES, - data: data - }; - let state = {}; - state = ConfigurableViewReducer(state, action); - expect(state).toEqual({ - customRoutes: data - }); - }); -}) |