X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/0dbd184178c1016a19828fa80df9f91dec907993..cc493b89840b48f40c2beaf626994724331aa196:/src/components/popover/popover.test.tsx

diff --git a/src/components/popover/popover.test.tsx b/src/components/popover/popover.test.tsx
index fa24c0cd..4bc2ebd4 100644
--- a/src/components/popover/popover.test.tsx
+++ b/src/components/popover/popover.test.tsx
@@ -6,7 +6,7 @@ import * as React from "react";
 import { mount, configure } from "enzyme";
 import * as Adapter from "enzyme-adapter-react-16";
 
-import Popover, { DefaultTrigger } from "./popover";
+import { Popover, DefaultTrigger } from "./popover";
 import Button, { ButtonProps } from "@material-ui/core/Button";
 
 configure({ adapter: new Adapter() });
@@ -15,7 +15,7 @@ describe("<Popover />", () => {
     it("opens on default trigger click", () => {
         const popover = mount(<Popover />);
         popover.find(DefaultTrigger).simulate("click");
-        expect(popover.state().anchorEl).toBeDefined();
+        expect((popover.state() as any).anchorEl).toBeDefined();
     });
 
     it("renders custom trigger", () => {
@@ -26,7 +26,7 @@ describe("<Popover />", () => {
     it("opens on custom trigger click", () => {
         const popover = mount(<Popover triggerComponent={CustomTrigger} />);
         popover.find(CustomTrigger).simulate("click");
-        expect(popover.state().anchorEl).toBeDefined();
+        expect((popover.state() as any).anchorEl).toBeDefined();
     });
 
     it("renders children when opened", () => {
@@ -38,7 +38,7 @@ describe("<Popover />", () => {
         popover.find(DefaultTrigger).simulate("click");
         expect(popover.find(CustomTrigger)).toHaveLength(1);
     });
-    
+
     it("does not close if closeOnContentClick is not set", () => {
         const popover = mount(
             <Popover>
@@ -47,7 +47,7 @@ describe("<Popover />", () => {
         );
         popover.find(DefaultTrigger).simulate("click");
         popover.find(CustomTrigger).simulate("click");
-        expect(popover.state().anchorEl).toBeDefined();
+        expect((popover.state() as any).anchorEl).toBeDefined();
     });
     it("closes on content click if closeOnContentClick is set", () => {
         const popover = mount(
@@ -57,7 +57,7 @@ describe("<Popover />", () => {
         );
         popover.find(DefaultTrigger).simulate("click");
         popover.find(CustomTrigger).simulate("click");
-        expect(popover.state().anchorEl).toBeUndefined();
+        expect((popover.state() as any).anchorEl).toBeUndefined();
     });
 
 });
@@ -66,4 +66,4 @@ const CustomTrigger: React.SFC<ButtonProps> = (props) => (
     <Button {...props}>
         Open popover
     </Button>
-);
\ No newline at end of file
+);
