-
Notifications
You must be signed in to change notification settings - Fork 2
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
장소 모듈 테스트 작성 (컨트롤러 일부 추가) #128
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.
고생하셨습니다
expect(results).toEqual([]); | ||
}); | ||
|
||
it('페이지 크기가 매우 클 경우에도 정상적으로 작동한다', async () => { |
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.
q: 매우 크다는 기준이 정확하게 뭘까요? 조금 애매한 것 같습니다!
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.
수정했습니다.
0 이하랑 반대되는 테스트를 만들고 싶었어요 ㅎㅎ;
q. 스크립트에 runInBand
옵션이 없어서 추가했는데 이렇게 사용하는거 맞나요?
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.
--runInBand
의 alias가 -i
입니다!
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.
수고많았습니다. 테스트 코드 참고해서 저도 빠르게 작성해보겠습니다.
expect(results).toEqual([]); | ||
}); | ||
|
||
it('결과가 너무 많을 경우 페이지 크기만큼만 반환한다', async () => { |
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.
p3. 이 부분 너무 많을 경우보다는 정확한 수치를 입력하는 게 좋지 않을까요??
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.
여기도 있네요!
페이지 크기를 초과하는 경우로 수정해야겠어요
PlaceService, | ||
{ | ||
provide: PlaceRepository, | ||
useValue: new PlaceRepository(dataSource), |
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.
q. 저희 service
테스트에서는 repository
모킹해서 진행하는 걸로 정하지 않았나요?
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.
PR 메시지 읽어주세요.
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.
죄송합니다 ㅠㅠ
191b42c
to
d90800e
Compare
-- runInBand 반영
불명확한 테스트 설명 수정
9328e37
to
22a42c2
Compare
📄 Summary
🙋🏻 More
일단 컨테이너 사용하도록 해서 서비스 테스트 작성했습니다.
삽질 보관용 커밋
삽질의 흔적입니다 ...
🕰️ Actual Time of Completion
close #50