X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5925c0eb9468ffca9419e47ae333501968b4e24e..f0ac109691369516a5adf9370838cb4eacf16a45:/src/components/data-table-filters/data-table-filters.test.tsx

diff --git a/src/components/data-table-filters/data-table-filters.test.tsx b/src/components/data-table-filters/data-table-filters.test.tsx
index 6756252b09..9a3fa4dc5c 100644
--- a/src/components/data-table-filters/data-table-filters.test.tsx
+++ b/src/components/data-table-filters/data-table-filters.test.tsx
@@ -4,11 +4,9 @@
 
 import * as React from "react";
 import { mount, configure } from "enzyme";
-import DataTableFilter, { DataTableFilterItem } from "./data-table-filters";
-
+import { DataTableFilters } from "./data-table-filters";
 import * as Adapter from 'enzyme-adapter-react-16';
 import { Checkbox, ButtonBase, ListItem, Button, ListItemText } from "@material-ui/core";
-import dataTableFilters from "./data-table-filters";
 
 configure({ adapter: new Adapter() });
 
@@ -21,12 +19,12 @@ describe("<DataTableFilter />", () => {
             name: "Filter 2",
             selected: false
         }];
-        const dataTableFilter = mount(<DataTableFilter name="" filters={filters} />);
+        const dataTableFilter = mount(<DataTableFilters name="" filters={filters} />);
         dataTableFilter.find(ButtonBase).simulate("click");
         expect(dataTableFilter.find(Checkbox).at(0).prop("checked")).toBeTruthy();
         expect(dataTableFilter.find(Checkbox).at(1).prop("checked")).toBeFalsy();
     });
-    
+
     it("updates filters after filters prop change", () => {
         const filters = [{
             name: "Filter 1",
@@ -36,7 +34,7 @@ describe("<DataTableFilter />", () => {
             name: "Filter 2",
             selected: true
         }];
-        const dataTableFilter = mount(<DataTableFilter name="" filters={filters} />);
+        const dataTableFilter = mount(<DataTableFilters name="" filters={filters} />);
         dataTableFilter.find(ButtonBase).simulate("click");
         expect(dataTableFilter.find(Checkbox).prop("checked")).toBeTruthy();
         dataTableFilter.find(ListItem).simulate("click");
@@ -55,7 +53,7 @@ describe("<DataTableFilter />", () => {
             selected: false
         }];
         const onChange = jest.fn();
-        const dataTableFilter = mount(<DataTableFilter name="" filters={filters} onChange={onChange} />);
+        const dataTableFilter = mount(<DataTableFilters name="" filters={filters} onChange={onChange} />);
         dataTableFilter.find(ButtonBase).simulate("click");
         dataTableFilter.find(ListItem).at(1).simulate("click");
         dataTableFilter.find(Button).at(0).simulate("click");
@@ -67,4 +65,4 @@ describe("<DataTableFilter />", () => {
             selected: true
         }]);
     });
-});
\ No newline at end of file
+});
