Skip to content
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

[view] AuthorBarChart util 함수 테스트 코드 작성 #740

Merged
merged 19 commits into from
Sep 30, 2024

Conversation

xxxjinn
Copy link
Contributor

@xxxjinn xxxjinn commented Sep 29, 2024

Related issue

Result

image

Work list

AuthorBarChart util 함수의 테스트 코드를 작성했습니다.

  1. 빈 데이터 값이 올 경우
  2. commit 정보 (몇 줄 추가했는지:insertions, 몇 줄 삭제했는지:deletions 등) 데이터를 정확히 집계하는지 getDataByAuthor 함수를 테스트했습니다.

Discussion

  • 로그가 꼬인건지 이전 커밋기록이 왜 나오는지는 잘 모르겠습니다,,🥲 가장 아래 두 개의 커밋만 봐주시면 될 것 같습니다

@xxxjinn xxxjinn self-assigned this Sep 29, 2024
@xxxjinn xxxjinn requested review from a team as code owners September 29, 2024 10:10
Copy link
Contributor

@ytaek ytaek left a comment

Choose a reason for hiding this comment

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

LGGGGTM!!! 깔끔하네요!! 💯💯💯💯💯
empty 값 테스트 넣어주신 것도 매우 좋습니다!!

import { getDataByAuthor } from "./AuthorBarChart.util";

describe("getDataByAuthor", () => {
it("should return empty array if no data is provided", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍👍👍👍👍

commit: 2,
insertion: 7,
deletion: 4,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

(사소) 기왕이면 Type 선언도 하면 좋지 않을까요? 😸

Copy link
Contributor Author

Choose a reason for hiding this comment

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

approve를 두 개 받아버려서..!! 다음 tc pr 올릴 때 함께 반영해서 올리도록 하겠습니다! 감사합니다🙂🙂🙂

Copy link
Contributor

@shgusgh12 shgusgh12 left a comment

Choose a reason for hiding this comment

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

LGTM입니다!!!!!!!👍

@xxxjinn xxxjinn merged commit bc426b0 into githru:main Sep 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants