Skip to content

Commit 6029f8e

Browse files
committed
fix(test): failing test connected to setting selected items
1 parent 89e4783 commit 6029f8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/module/src/Hooks/selection.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ describe('useDataViewSelection', () => {
99
selected: [],
1010
onSelect: expect.any(Function),
1111
isSelected: expect.any(Function),
12+
setSelected: expect.any(Function),
1213
})
1314
});
1415

@@ -19,6 +20,7 @@ describe('useDataViewSelection', () => {
1920
selected: initialSelected,
2021
onSelect: expect.any(Function),
2122
isSelected: expect.any(Function),
23+
setSelected: expect.any(Function),
2224
})
2325
});
2426

@@ -111,4 +113,4 @@ describe('useDataViewSelection', () => {
111113
expect(result.current.isSelected({ id: 2, name: 'test2' })).toBe(true);
112114
expect(result.current.isSelected({ id: 3, name: 'test3' })).toBe(true);
113115
});
114-
});
116+
});

0 commit comments

Comments
 (0)