Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / store / collection-panel / collection-panel-files / collection-panel-files-reducer.test.ts
index 94b71ffb249d729751b9b8e9486d9ce19ca75b8f..0dbb08d818c4e336e484e8ce8ec0d5df648b9159 100644 (file)
@@ -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<CollectionFile | CollectionDirectory>());
 
     const collectionPanelFilesTree = collectionPanelFilesReducer(