Skip to content

Commit

Permalink
ROFO-185 오탈자 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-chae committed Sep 2, 2024
1 parent c995a19 commit 1c202ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ReviewLikeCommandServiceTest :
likeTotal = 0,
)
every { reviewLikeRepository.existsById(any()) } returns true
then("리뷰 좋아요 수는 음수가 될 수 없는 예외가 발생한다.") {
then("리뷰 좋아요 수는 음수가 될 수 없다는 예외가 발생한다.") {
shouldThrow<RoadyFoodyBadRequestException> {
reviewLikeService.unlikeReview(TEST_REVIEW_ID, createTestUser())
}.message shouldBe ErrorCode.NEGATIVE_NUMBER_OF_LIKED.errorMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ReviewLikeControllerTest(
.perform(
postWithAuth(requestPath),
).andExpect(status().isCreated)
verify { reviewLikeCommandService.likeReview(any(), any()) }
verify(exactly = 1) { reviewLikeCommandService.likeReview(any(), any()) }
}
}

Expand All @@ -54,7 +54,7 @@ class ReviewLikeControllerTest(
.perform(
deleteWithAuth(requestPath),
).andExpect(status().isNoContent)
verify { reviewLikeCommandService.unlikeReview(any(), any()) }
verify(exactly = 1) { reviewLikeCommandService.unlikeReview(any(), any()) }
}
}

Expand Down

0 comments on commit 1c202ef

Please sign in to comment.