Skip to content

Commit

Permalink
test : usePostDataForReviewRequestCode 목 핸들러에 props 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
BadaHertz52 committed Dec 27, 2024
1 parent 3207948 commit 6162a02
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ describe('usePostDataForReviewRequestCode', () => {
groupAccessCode: '1234',
};

const { result } = renderHook(() => usePostDataForReviewRequestCode(), { wrapper: QueryClientWrapper });
const { result } = renderHook(
() =>
usePostDataForReviewRequestCode({
handleAPIError: (error: Error) => {
console.error(error);
},
handleAPISuccess: (data: any) => {},
}),
{ wrapper: QueryClientWrapper },
);

// when
act(() => {
Expand Down

0 comments on commit 6162a02

Please sign in to comment.