Merge branch 'master'
[arvados-workbench2.git] / src / components / context-menu / context-menu.test.tsx
index 86011a3cee0e90014a476b779b9a12f0e3fe6072..a245253858c8f5e7a1cfe213f62debbe9c0c404b 100644 (file)
@@ -5,21 +5,21 @@
 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 { ContextMenu } from "./context-menu";
 import { ListItem } from "@material-ui/core";
-import { IconTypes } from "../icon/icon";
+import { ShareIcon } from "../icon/icon";
 
 configure({ adapter: new Adapter() });
 
 describe("<ContextMenu />", () => {
     const items = [[{
-        icon: IconTypes.ANNOUNCEMENT,
+        icon: ShareIcon,
         name: "Action 1.1"
     }, {
-        icon: IconTypes.ANNOUNCEMENT,
+        icon: ShareIcon,
         name: "Action 1.2"
     },], [{
-        icon: IconTypes.ANNOUNCEMENT,
+        icon: ShareIcon,
         name: "Action 2.1"
     }]];
 
@@ -33,4 +33,4 @@ describe("<ContextMenu />", () => {
         contextMenu.find(ListItem).at(2).simulate("click");
         expect(onItemClick).toHaveBeenCalledWith(items[1][0]);
     });
-});
\ No newline at end of file
+});