X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/0af46f7944bde95f634080a1d6b15ae9c585890a..a918d09702ac7b1ac111ea12ded1cdb2bd801e88:/src/components/data-explorer/data-explorer.test.tsx diff --git a/src/components/data-explorer/data-explorer.test.tsx b/src/components/data-explorer/data-explorer.test.tsx index 1ce56414..94c7be6d 100644 --- a/src/components/data-explorer/data-explorer.test.tsx +++ b/src/components/data-explorer/data-explorer.test.tsx @@ -27,7 +27,8 @@ describe("", () => { columns={[{ name: "Column 1", render: jest.fn(), selected: true }]} />); expect(dataExplorer.find(ContextMenu).prop("actions")).toEqual([]); dataExplorer.find(DataTable).prop("onRowContextMenu")({ - preventDefault: jest.fn() + preventDefault: jest.fn(), + stopPropagation: jest.fn() }, "Item 1"); dataExplorer.find(ContextMenu).prop("onActionClick")({ name: "Action 1", icon: "" }); expect(onContextAction).toHaveBeenCalledWith({ name: "Action 1", icon: "" }, "Item 1"); @@ -88,7 +89,6 @@ describe("", () => { items={[]} />); expect(dataExplorer.find(SearchInput)).toHaveLength(0); - expect(dataExplorer.find(ColumnSelector)).toHaveLength(0); expect(dataExplorer.find(TablePagination)).toHaveLength(0); });