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

Team 9 Tdd 과제 제출 #10

Open
wants to merge 15 commits into
base: team-9
Choose a base branch
from
Open

Conversation

fist-99
Copy link

@fist-99 fist-99 commented May 13, 2022

같은 스크립트 공유 문제로 인한 사소한 대소문자 버그를 수정해서 Tdd 과제 제출합니다.
KakaoTalk_20220514_004941265

jest.spyOn(todoItem4, "equalsDayOfCreatedAt").mockImplementation(() => false);
jest.spyOn(todoItem5, "equalsDayOfCreatedAt").mockImplementation(() => false);
//2,3 번 완료
jest.spyOn(todoItem2, "completed", "get").mockImplementation(() => true);
Copy link
Contributor

Choose a reason for hiding this comment

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

returnValue로 함수를 넣었기 때문에, true가 아닌 함수를 반환합니다.
함수를 반환하는 것이 아니라 true로 반환을 해주어야합니다.
수정이 필요합니다.

우연히 completed가 함수를 반환하다보니, 테스트도 통과했을 것 같네요.

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.

5 participants