15610: Code cleanup, styiling additions. (WIP)
[arvados-workbench2.git] / src / components / tree / tree.test.tsx
index 50d1368abedc0776b1b81b4e2fe88013f4f7c134..a153ec06cc425f3623c997f50a99919d38b6503a 100644 (file)
@@ -84,15 +84,15 @@ 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",
             open: true,
             active: true,
-            status: 1,
+            status: TreeItemStatus.LOADED,
         });
     });