Skip to content

Commit

Permalink
fix: failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Nov 4, 2024
1 parent ac17cf2 commit 67239dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("MessageInputContext's pickFile", () => {
maxNumberOfFiles: 2,
};

it.each([[3, 2]])(
it.each([[3, 1]])(
'run pickFile when numberOfUploads is %d and alert is triggered %d number of times',
async (numberOfUploads, numberOfTimesCalled) => {
const { rerender, result } = renderHook(() => useMessageInputContext(), {
Expand All @@ -87,6 +87,7 @@ describe("MessageInputContext's pickFile", () => {
});

expect(Alert.alert).toHaveBeenCalledTimes(numberOfTimesCalled);
expect(Alert.alert).toHaveBeenCalledWith('Maximum number of files reached');
},
);

Expand Down

0 comments on commit 67239dc

Please sign in to comment.