X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9b390921232a4a3d1279d59da96f00dabeba1150..015c7956121aceeade3d92243022c51e552d7a32:/src/components/context-menu/context-menu.test.tsx?ds=sidebyside

diff --git a/src/components/context-menu/context-menu.test.tsx b/src/components/context-menu/context-menu.test.tsx
index 95a219f9..31e77200 100644
--- a/src/components/context-menu/context-menu.test.tsx
+++ b/src/components/context-menu/context-menu.test.tsx
@@ -2,10 +2,10 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from "react";
-import { mount, configure, shallow } from "enzyme";
-import * as Adapter from "enzyme-adapter-react-16";
-import ContextMenu from "./context-menu";
+import React from "react";
+import { mount, configure } from "enzyme";
+import Adapter from "enzyme-adapter-react-16";
+import { ContextMenu } from "./context-menu";
 import { ListItem } from "@material-ui/core";
 import { ShareIcon } from "../icon/icon";
 
@@ -27,10 +27,11 @@ describe("<ContextMenu />", () => {
         const onItemClick = jest.fn();
         const contextMenu = mount(<ContextMenu
             anchorEl={document.createElement("div")}
+            open={true}
             onClose={jest.fn()}
             onItemClick={onItemClick}
             items={items} />);
         contextMenu.find(ListItem).at(2).simulate("click");
         expect(onItemClick).toHaveBeenCalledWith(items[1][0]);
     });
-});
\ No newline at end of file
+});
