Skip to content

Commit

Permalink
Test: 모킹하는 useMajor 훅에 graduationLink 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hwinkr committed Nov 4, 2023
1 parent 90fbb37 commit 9864252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/List/DepartmentList/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ jest.mock('@hooks/useModals', () => {
});

describe.skip('학과선택 테스트', () => {
const mockGraduationLink = 'https://ce.pknu.ac.kr/ce/2889';
const mockUseMajor = useMajor as jest.MockedFunction<typeof useMajor>;
const mockSetMajor = jest.fn();

beforeEach(() => {
mockUseMajor.mockReturnValue({
setMajor: mockSetMajor,
major: '컴퓨터공학과',
graduationLink: mockGraduationLink,
});
});

Expand Down

0 comments on commit 9864252

Please sign in to comment.