fix(community): 리스트 잠금 반응 표시를 숨긴다
This commit is contained in:
+15
@@ -77,6 +77,21 @@ class CreatorChannelCommunityMapperTest {
|
||||
assertFalse(item.showPlayButton)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `유료 미구매 타인 게시글은 reaction 현황과 댓글을 숨긴다`() {
|
||||
val item = listOf(
|
||||
communityPost(
|
||||
price = 100,
|
||||
existOrdered = false,
|
||||
isCommentAvailable = true
|
||||
)
|
||||
).toCommunityPostUiModels(relativeTimeTextFormatter, isOwner = false, currentUserId = 99L).single()
|
||||
|
||||
assertTrue(item.isLocked)
|
||||
assertFalse(item.showReaction)
|
||||
assertFalse(item.showComment)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `고정 게시글 여부는 owner more 정책에서 사용할 수 있도록 UI 모델에 보존한다`() {
|
||||
val pinnedItem = listOf(communityPost(isPinned = true))
|
||||
|
||||
Reference in New Issue
Block a user