feat(home): 인기 커뮤니티 좋아요 응답을 추가한다

This commit is contained in:
2026-06-30 01:08:25 +09:00
parent 6c2c8a0386
commit 2789670615
4 changed files with 19 additions and 8 deletions
@@ -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)