Skip to content

test: useCarousel test coverage 개선 #12

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

Merged
merged 6 commits into from
May 21, 2024

Conversation

d0422
Copy link
Member

@d0422 d0422 commented May 20, 2024

  • useCarousel test coverage 개선

Before

image

After

image

useCarousel 의 특성을 고려하여 hook test방식에서 component 테스트방식으로 변경하여 테스트 커버리지를 개선하였습니다.
더불어 getSliderWidth에서 window.innerWidth를 반환하는 부분을 제거할 수 있다는 것을 발견하여, 해당 조건문 부분을 제거하였습니다.

@d0422 d0422 requested a review from HBSPS May 20, 2024 00:52
@d0422 d0422 self-assigned this May 20, 2024
@d0422 d0422 added enhancement New feature or request and removed enhancement New feature or request labels May 20, 2024
Copy link
Contributor

@HBSPS HBSPS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@d0422 d0422 merged commit 7509bb4 into Rapiders:main May 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants