X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9230902521944497f96976064c5c7ae824786084..180c2c37b635cbb7a33257d2ee9b4395553ce5e7:/src/store/side-panel/side-panel-reducer.test.ts diff --git a/src/store/side-panel/side-panel-reducer.test.ts b/src/store/side-panel/side-panel-reducer.test.ts index 5edd9021..e517fc85 100644 --- a/src/store/side-panel/side-panel-reducer.test.ts +++ b/src/store/side-panel/side-panel-reducer.test.ts @@ -2,8 +2,8 @@ // // SPDX-License-Identifier: AGPL-3.0 -import sidePanelReducer from "./side-panel-reducer"; -import actions from "./side-panel-action"; +import { sidePanelReducer } from "./side-panel-reducer"; +import { sidePanelActions } from "./side-panel-action"; import { ProjectsIcon } from "../../components/icon/icon"; describe('side-panel-reducer', () => { @@ -28,7 +28,7 @@ describe('side-panel-reducer', () => { } ]; - const state = sidePanelReducer(initialState, actions.TOGGLE_SIDE_PANEL_ITEM_ACTIVE(initialState[0].id)); + const state = sidePanelReducer(initialState, sidePanelActions.TOGGLE_SIDE_PANEL_ITEM_ACTIVE(initialState[0].id)); expect(state).toEqual(project); }); @@ -52,7 +52,7 @@ describe('side-panel-reducer', () => { } ]; - const state = sidePanelReducer(initialState, actions.TOGGLE_SIDE_PANEL_ITEM_OPEN(initialState[0].id)); + const state = sidePanelReducer(initialState, sidePanelActions.TOGGLE_SIDE_PANEL_ITEM_OPEN(initialState[0].id)); expect(state).toEqual(project); }); @@ -76,7 +76,7 @@ describe('side-panel-reducer', () => { } ]; - const state = sidePanelReducer(initialState, actions.RESET_SIDE_PANEL_ACTIVITY(initialState[0].id)); + const state = sidePanelReducer(initialState, sidePanelActions.RESET_SIDE_PANEL_ACTIVITY(initialState[0].id)); expect(state).toEqual(project); }); -}); \ No newline at end of file +});