-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feature] Membership authentication error handling #41
Conversation
saseungmin
commented
Feb 27, 2021
•
edited
Loading
edited
- npm install dependencies axios and notistack
- Error handling when the input value is empty during member authentication
- npm install dependencies axios and notistack - Error handling when the input value is empty during member authentication
const props = { | ||
auth: { | ||
type: 'register', | ||
visible: true, | ||
}, | ||
fields: { | ||
register: { | ||
userId: 'test', | ||
password: 'test', | ||
passwordConfirm: 'test', | ||
}, | ||
login: { | ||
userId: '', | ||
password: '', | ||
}, | ||
}, | ||
}; |
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.
리팩토링 필요.
중복되는 테스트 케이스 코드가 많다.
fixtures 폴더를 만들어 테스트에 필요한 데이터를 가져다가 써주자.
const handleSubmit = (e) => { | ||
e.preventDefault(); | ||
|
||
if (!isCheckValidate(authFieldsState)) { | ||
enqueueSnackbar(EMPTY_AUTH_INPUT, { | ||
variant: 'error', | ||
}); | ||
} |
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.
TODO: api 호출 처리
- install @material-ui/core
Codecov Report
@@ Coverage Diff @@
## main #41 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 34 34
Lines 286 293 +7
Branches 40 41 +1
=========================================
+ Hits 286 293 +7
Continue to review full report at Codecov.
|
테스트 오류 수정
|