17114: Replaced tree with list for children items
[arvados-workbench2.git] / src / components / tree / tree.test.tsx
index 8c3800269df1140a526af15344c41eac52ab966b..a153ec06cc425f3623c997f50a99919d38b6503a 100644 (file)
@@ -84,9 +84,9 @@ describe("Tree component", () => {
             toggleItemOpen={jest.fn()}
             toggleItemActive={jest.fn()}
             onContextMenu={jest.fn()}
-            onSelectionChange={onSelectionChanged}
+            toggleItemSelection={onSelectionChanged}
             items={[project]} />);
-        wrapper.find(Checkbox).prop('onClick')();
+        wrapper.find(Checkbox).simulate('click');
         expect(spy).toHaveBeenLastCalledWith({
             data: mockProjectResource(),
             id: "3",