feat(home): 인기 커뮤니티 게시글 가격을 응답한다
This commit is contained in:
@@ -48,6 +48,7 @@ class HomeRecommendationResponseTest {
|
||||
imageUrl = "https://cdn.test/community/image.png",
|
||||
audioUrl = "https://cdn.test/community/audio.mp3",
|
||||
content = "community content",
|
||||
price = 9,
|
||||
createdAt = "2026-06-01T00:00:00Z",
|
||||
likeCount = 7L,
|
||||
commentCount = 8L,
|
||||
@@ -64,6 +65,7 @@ class HomeRecommendationResponseTest {
|
||||
assertEquals(5L, json["popularCommunityPosts"][0]["postId"].asLong())
|
||||
assertEquals("https://cdn.test/community/image.png", json["popularCommunityPosts"][0]["imageUrl"].asText())
|
||||
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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user