X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9320734bb358e7148918da13e81ebba59ecf16e8..d6a65f155ca546aea3a777e73076c2c80f2c88cc:/src/views-components/main-app-bar/main-app-bar.test.tsx

diff --git a/src/views-components/main-app-bar/main-app-bar.test.tsx b/src/views-components/main-app-bar/main-app-bar.test.tsx
index ac744b9e63..75a39fd57a 100644
--- a/src/views-components/main-app-bar/main-app-bar.test.tsx
+++ b/src/views-components/main-app-bar/main-app-bar.test.tsx
@@ -3,14 +3,14 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from "react";
-import { mount, configure, ReactWrapper } from "enzyme";
+import { mount, configure } from "enzyme";
 import * as Adapter from "enzyme-adapter-react-16";
-import MainAppBar from "./main-app-bar";
-import SearchBar from "../../components/search-bar/search-bar";
-import Breadcrumbs from "../../components/breadcrumbs/breadcrumbs";
-import DropdownMenu from "../../components/dropdown-menu/dropdown-menu";
+import { MainAppBar } from "./main-app-bar";
+import { SearchBar } from "~/components/search-bar/search-bar";
+import { Breadcrumbs } from "~/components/breadcrumbs/breadcrumbs";
+import { DropdownMenu } from "~/components/dropdown-menu/dropdown-menu";
 import { Button, MenuItem, IconButton } from "@material-ui/core";
-import { User } from "../../models/user";
+import { User } from "~/models/user";
 
 configure({ adapter: new Adapter() });
 
@@ -30,7 +30,6 @@ describe("<MainAppBar />", () => {
                 user={user}
                 onContextMenu={jest.fn()}
                 onDetailsPanelToggle={jest.fn()}
-                onContextMenu={jest.fn()}
                 {...{ searchText: "", breadcrumbs: [], menuItems: { accountMenu: [], helpMenu: [], anonymousMenu: [] }, onSearch: jest.fn(), onBreadcrumbClick: jest.fn(), onMenuItemClick: jest.fn() }}
             />
         );
@@ -63,7 +62,6 @@ describe("<MainAppBar />", () => {
                 searchDebounce={2000}
                 onContextMenu={jest.fn()}
                 onSearch={onSearch}
-                onContextMenu={jest.fn()}
                 onDetailsPanelToggle={jest.fn()}
                 {...{ user, breadcrumbs: [], menuItems: { accountMenu: [], helpMenu: [], anonymousMenu: [] }, onBreadcrumbClick: jest.fn(), onMenuItemClick: jest.fn() }}
             />
@@ -83,7 +81,6 @@ describe("<MainAppBar />", () => {
                 breadcrumbs={items}
                 onContextMenu={jest.fn()}
                 onBreadcrumbClick={onBreadcrumbClick}
-                onContextMenu={jest.fn()}
                 onDetailsPanelToggle={jest.fn()}
                 {...{ user, searchText: "", menuItems: { accountMenu: [], helpMenu: [], anonymousMenu: [] }, onSearch: jest.fn(), onMenuItemClick: jest.fn() }}
             />
@@ -102,7 +99,6 @@ describe("<MainAppBar />", () => {
                 menuItems={menuItems}
                 onContextMenu={jest.fn()}
                 onMenuItemClick={onMenuItemClick}
-                onContextMenu={jest.fn()}
                 onDetailsPanelToggle={jest.fn()}
                 {...{ user, searchText: "", breadcrumbs: [], onSearch: jest.fn(), onBreadcrumbClick: jest.fn() }}
             />
