X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9438812a13875c06996ed7190f8faf21011910bd..d1af457494186adb375ce2c012cb58685e0556e3:/src/components/tree/tree.test.tsx diff --git a/src/components/tree/tree.test.tsx b/src/components/tree/tree.test.tsx index 45981d89..8c380026 100644 --- a/src/components/tree/tree.test.tsx +++ b/src/components/tree/tree.test.tsx @@ -7,7 +7,7 @@ import * as Enzyme from 'enzyme'; import * as Adapter from 'enzyme-adapter-react-16'; import ListItem from "@material-ui/core/ListItem/ListItem"; -import { Tree, TreeItem } from './tree'; +import { Tree, TreeItem, TreeItemStatus } from './tree'; import { ProjectResource } from '../../models/project'; import { mockProjectResource } from '../../models/test-utils'; import { Checkbox } from '@material-ui/core'; @@ -22,7 +22,7 @@ describe("Tree component", () => { id: "3", open: true, active: true, - status: 1, + status: TreeItemStatus.LOADED }; const wrapper = mount(
} @@ -39,7 +39,7 @@ describe("Tree component", () => { id: "3", open: true, active: true, - status: 1, + status: TreeItemStatus.LOADED, }; const wrapper = mount(
} @@ -56,7 +56,7 @@ describe("Tree component", () => { id: "3", open: true, active: true, - status: 1, + status: TreeItemStatus.LOADED }; const wrapper = mount( { id: "3", open: true, active: true, - status: 1, + status: TreeItemStatus.LOADED, }; const spy = jest.fn(); const onSelectionChanged = (event: any, item: TreeItem) => spy(item); @@ -92,7 +92,7 @@ describe("Tree component", () => { id: "3", open: true, active: true, - status: 1, + status: TreeItemStatus.LOADED, }); });