feat(home): 인기 커뮤니티 좋아요 응답을 추가한다
This commit is contained in:
+5
-2
@@ -72,7 +72,8 @@ class HomeRecommendationResponseTest {
|
||||
createdAt = "2026-06-01T00:00:00Z",
|
||||
likeCount = 7L,
|
||||
commentCount = 8L,
|
||||
existOrdered = true
|
||||
existOrdered = true,
|
||||
isLiked = true
|
||||
),
|
||||
HomePopularCommunityPostItem(
|
||||
postId = 9L,
|
||||
@@ -86,7 +87,8 @@ class HomeRecommendationResponseTest {
|
||||
createdAt = "2026-06-01T00:00:00Z",
|
||||
likeCount = 0L,
|
||||
commentCount = 0L,
|
||||
existOrdered = false
|
||||
existOrdered = false,
|
||||
isLiked = false
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -111,6 +113,7 @@ class HomeRecommendationResponseTest {
|
||||
assertEquals("https://cdn.test/community/audio.mp3", json["popularCommunityPosts"][0]["audioUrl"].asText())
|
||||
assertEquals(9, json["popularCommunityPosts"][0]["price"].asInt())
|
||||
assertEquals(true, json["popularCommunityPosts"][0]["existOrdered"].asBoolean())
|
||||
assertEquals(true, json["popularCommunityPosts"][0]["isLiked"].asBoolean())
|
||||
assertEquals(true, json["popularCommunityPosts"][1]["creatorProfileImage"].isNull)
|
||||
assertEquals(true, json["popularCommunityPosts"][1]["imageUrl"].isNull)
|
||||
assertEquals(true, json["popularCommunityPosts"][1]["audioUrl"].isNull)
|
||||
|
||||
Reference in New Issue
Block a user