Skip to content

Commit

Permalink
Test: 테스트 코드 변경
Browse files Browse the repository at this point in the history
navyjeongs committed Sep 10, 2023
1 parent 5b2ba41 commit 71c693a
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions __test__/components/Sidebar/ChannelBar/SelectChannelType.test.tsx
Original file line number Diff line number Diff line change
@@ -11,17 +11,17 @@ jest.mock('next/router', () => require('next-router-mock'));
describe('채널 추가 테스트', () => {
const queryClient = new QueryClient();

const mockFn = jest.fn();

it('초기에는 대회 개최 버튼과 대회 참여 버튼이 있다.', () => {
render(
<QueryClientProvider client={queryClient}>
<ChannelsProvider>
<Modal>
<SelectChannelType
handleModal={() => {
return;
}}
/>
</Modal>
<SelectChannelType
handleModal={() => {
return;
}}
/>
</ChannelsProvider>
</QueryClientProvider>,
);
@@ -35,13 +35,11 @@ describe('채널 추가 테스트', () => {
render(
<QueryClientProvider client={queryClient}>
<ChannelsProvider>
<Modal>
<SelectChannelType
handleModal={() => {
return;
}}
/>
</Modal>
<SelectChannelType
handleModal={() => {
return;
}}
/>
</ChannelsProvider>
</QueryClientProvider>,
);
@@ -56,13 +54,11 @@ describe('채널 추가 테스트', () => {
render(
<QueryClientProvider client={queryClient}>
<ChannelsProvider>
<Modal>
<SelectChannelType
handleModal={() => {
return;
}}
/>
</Modal>
<SelectChannelType
handleModal={() => {
return;
}}
/>
</ChannelsProvider>
</QueryClientProvider>,
);

0 comments on commit 71c693a

Please sign in to comment.