X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ea80145c5d632a647cf583cf0ebbf2a866d85549..8a057a6a69f4182cd3adc67c7d1071832ffeaa0b:/src/components/context-menu/context-menu.test.tsx

diff --git a/src/components/context-menu/context-menu.test.tsx b/src/components/context-menu/context-menu.test.tsx
index 95a219f98a..faf05f1ff3 100644
--- a/src/components/context-menu/context-menu.test.tsx
+++ b/src/components/context-menu/context-menu.test.tsx
@@ -3,9 +3,9 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from "react";
-import { mount, configure, shallow } from "enzyme";
+import { mount, configure } from "enzyme";
 import * as Adapter from "enzyme-adapter-react-16";
-import ContextMenu from "./context-menu";
+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
+});
