X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e63198a93d7b537ffbb68b8210c99f76041fd112..e92207c912aed73a07340b5fb2a9e2cb23e1da5f:/src/store/collection-panel/collection-panel-files/collection-panel-files-reducer.test.ts diff --git a/src/store/collection-panel/collection-panel-files/collection-panel-files-reducer.test.ts b/src/store/collection-panel/collection-panel-files/collection-panel-files-reducer.test.ts index 94b71ffb..3964ee47 100644 --- a/src/store/collection-panel/collection-panel-files/collection-panel-files-reducer.test.ts +++ b/src/store/collection-panel/collection-panel-files/collection-panel-files-reducer.test.ts @@ -4,8 +4,8 @@ import { collectionPanelFilesReducer } from "./collection-panel-files-reducer"; import { collectionPanelFilesAction } from "./collection-panel-files-actions"; -import { CollectionFile, CollectionDirectory, createCollectionFile, createCollectionDirectory } from "../../../models/collection-file"; -import { createTree, setNode, getNodeValue, mapTreeValues, Tree } from "../../../models/tree"; +import { CollectionFile, CollectionDirectory, createCollectionFile, createCollectionDirectory } from "~/models/collection-file"; +import { createTree, setNode, getNodeValue, mapTreeValues, TreeNodeStatus } from "~/models/tree"; import { CollectionPanelFile, CollectionPanelDirectory } from "./collection-panel-files-state"; describe('CollectionPanelFilesReducer', () => { @@ -26,7 +26,11 @@ describe('CollectionPanelFilesReducer', () => { children: [], id: file.id, parent: file.path, - value: file + value: file, + active: false, + selected: false, + expanded: false, + status: TreeNodeStatus.INITIAL, })(tree), createTree()); const collectionPanelFilesTree = collectionPanelFilesReducer(