-
Notifications
You must be signed in to change notification settings - Fork 4
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
kmin 계산기 제출입니다. #2
base: main
Are you sure you want to change the base?
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.
cypress/videos/sample_spec.ts.mp4
같은 파일은 업로드하지 않는 편이 좋을 것 같아요.
여기 참고하시면 될 것 같습니다!
과제 하시느라 고생하셨어요~ 👍
"env": { | ||
"TOTAL": "#total", | ||
"MODIFIER": ".modifier" | ||
} |
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.
Cypress에서도 환경변수를 넘겨줄 수 있었네요! 하나 배워갑니다.
this.$element.addEventListener('click', ({target}) => { | ||
if (!(target instanceof HTMLButtonElement)) return; |
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.
저도 event에서 target을 바로 따오려고 하다가 잘 안 돼서 결국 다른 방법을 사용했는데, 이 코드를 보고 어떻게 하면 좋은지 딱 깨달은 것 같아요. 하나 더 배워갑니다! ㅎㅎ
commit 규칙에 맞춰서 커밋을 작성하지 못했습니다. 죄송합니다...
데모 : https://kmin-283.github.io/javascript-calculator/