X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ae7d952a97542c2cfc12f6f41ab0de93af278919:/src/components/project-tree/project-tree.test.tsx..c90e813adcec89899d9db95843295a84fb058c3e:/src/views-components/project-tree/project-tree.test.tsx diff --git a/src/components/project-tree/project-tree.test.tsx b/src/views-components/project-tree/project-tree.test.tsx similarity index 89% rename from src/components/project-tree/project-tree.test.tsx rename to src/views-components/project-tree/project-tree.test.tsx index 932a29cc..1ba3abb8 100644 --- a/src/components/project-tree/project-tree.test.tsx +++ b/src/views-components/project-tree/project-tree.test.tsx @@ -11,7 +11,7 @@ import { Collapse } from '@material-ui/core'; import CircularProgress from '@material-ui/core/CircularProgress'; import ProjectTree from './project-tree'; -import { TreeItem } from '../tree/tree'; +import { TreeItem } from '../../components/tree/tree'; import { Project } from '../../models/project'; Enzyme.configure({ adapter: new Adapter() }); @@ -26,13 +26,14 @@ describe("ProjectTree component", () => { uuid: "uuid", ownerUuid: "ownerUuid", href: "href", + kind: 'example' }, id: "3", open: true, active: true, status: 1 }; - const wrapper = mount( { }} />); + const wrapper = mount(); expect(wrapper.find(ListItemIcon)).toHaveLength(1); }); @@ -47,6 +48,7 @@ describe("ProjectTree component", () => { uuid: "uuid", ownerUuid: "ownerUuid", href: "href", + kind: 'example' }, id: "3", open: false, @@ -61,6 +63,7 @@ describe("ProjectTree component", () => { uuid: "uuid", ownerUuid: "ownerUuid", href: "href", + kind: 'example' }, id: "3", open: false, @@ -68,7 +71,7 @@ describe("ProjectTree component", () => { status: 1 } ]; - const wrapper = mount( { }} />); + const wrapper = mount(); expect(wrapper.find(ListItemIcon)).toHaveLength(2); }); @@ -83,6 +86,7 @@ describe("ProjectTree component", () => { uuid: "uuid", ownerUuid: "ownerUuid", href: "href", + kind: 'example' }, id: "3", open: true, @@ -97,6 +101,7 @@ describe("ProjectTree component", () => { uuid: "uuid", ownerUuid: "ownerUuid", href: "href", + kind: 'example' }, id: "3", open: true, @@ -106,7 +111,7 @@ describe("ProjectTree component", () => { ] } ]; - const wrapper = mount( { }} />); + const wrapper = mount(); expect(wrapper.find(Collapse)).toHaveLength(1); }); @@ -120,13 +125,14 @@ describe("ProjectTree component", () => { uuid: "uuid", ownerUuid: "ownerUuid", href: "href", + kind: 'example' }, id: "3", open: false, active: true, status: 1 }; - const wrapper = mount( { }} />); + const wrapper = mount(); expect(wrapper.find(CircularProgress)).toHaveLength(1); });