X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c067c93c2159b21980551e2d87ebb10f985cba84..454ef1c106b3d738526d65ecfae8db98ad7bebc2:/src/components/tree/tree.test.tsx

diff --git a/src/components/tree/tree.test.tsx b/src/components/tree/tree.test.tsx
index 50d1368abe..a153ec06cc 100644
--- a/src/components/tree/tree.test.tsx
+++ b/src/components/tree/tree.test.tsx
@@ -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,
         });
     });
 
