-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useMoimInfoInput훅 테스트, MoimInfoInput validate함수 테스트 작성 #102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨슴니당~
import useMoimInfoInput from './MoimCreatePage.hook'; | ||
|
||
jest.mock('./MoimCreatePage.util', () => ({ | ||
validateAuthorNickname: jest.fn(() => true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서 무조건 true를 반환하는데 왜 handleChange를 해야하나요?
@@ -12,7 +12,7 @@ const POLICES = { | |||
maximumAuthorNicknameLength: 10, | |||
|
|||
yyyymmddDashRegex: /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, | |||
hhmmRegex: /^\d{2}:\d{2}$/, | |||
hhmmRegex: /^([01]\d|2[0-3]):([0-5]\d)$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
PR의 목적이 무엇인가요?
테스트 환경 구축과 useMoimInfoInput훅 테스트, MoimInfoInput validate함수 테스트
이슈 ID는 무엇인가요?
설명