diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.test.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.test.tsx index 3ea8a4170..8b74af6f8 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.test.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.test.tsx @@ -1,7 +1,7 @@ import { TableRowId } from "@fluentui/react-components"; import { ReactWrapper, mount } from "enzyme"; import React from "react"; -import { DocumentsTableComponent, IDocumentsTableComponentProps } from "./DocumentsTableComponent.tsxx"; +import { DocumentsTableComponent, IDocumentsTableComponentProps } from "./DocumentsTableComponent"; const PARTITION_KEY_HEADER = "partitionKey"; const ID_HEADER = "id"; @@ -73,30 +73,4 @@ describe("DocumentsTableComponent", () => { ).toBeTruthy(); }); }); - - // describe("selection", () => { - // afterEach(() => { - // wrapper.unmount(); - // }); - - // it("should clear selection when clicking on row", () => { - // const onSelectedRowsChange = jest.fn().mockName("onSelectedRowsChange"); - // const onItemClicked = jest.fn().mockName("onItemClicked"); - - // const props: IDocumentsTableComponentProps = { - // ...createMockProps(), - // selectedRows: new Set([1, 2]), - // onSelectedRowsChange, - // onItemClicked, - // }; - // wrapper = mount(); - // const cell = wrapper.find(".fui-TableBody .fui-TableCell").findWhere((node) => node.text() === "2"); - // // const cell = wrapper.find(".fui-TableBody .fui-TableCell").findWhere(node => node.text() === "2" && node.type() === "function"); - // // const cell = wrapper.find("[title~=\"2\"]"); - // cell.at(4).simulate("click"); - - // expect(onItemClicked).toHaveBeenCalledWith(2); - // expect(onSelectedRowsChange).toHaveBeenCalledWith(new Set([2])); - // }); - // }); });