Skip to content

Commit 01156c5

Browse files
committed
fix unit test.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent a64f6eb commit 01156c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/BaseSelectionListTest.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('BaseSelectionList', () => {
4747

4848
it('should not trigger item press if screen is not focused', () => {
4949
(NativeNavigation.useIsFocused as jest.Mock).mockReturnValue(false);
50-
render(<BaseListItemRenderer sections={mockSections} />);
50+
render(<BaseListItemRenderer sections={[{data: mockSections}]} />);
5151
fireEvent.press(screen.getByTestId(`${CONST.BASE_LIST_ITEM_TEST_ID}1`));
5252
expect(onSelectRowMock).toHaveBeenCalledTimes(0);
5353
});

0 commit comments

Comments
 (0)