fix(home): 팔로잉 크리에이터를 오래된 팔로우순으로 조회한다
This commit is contained in:
+4
-4
@@ -39,8 +39,8 @@ class DefaultHomeFollowingQueryRepositoryTest @Autowired constructor(
|
||||
private val repository = DefaultHomeFollowingQueryRepository(queryFactory, "https://cdn.test")
|
||||
|
||||
@Test
|
||||
@DisplayName("팔로잉 크리에이터는 활성 팔로우와 활성 크리에이터만 최신 팔로우순으로 조회한다")
|
||||
fun shouldFindActiveFollowingCreatorsByLatestFollowOrder() {
|
||||
@DisplayName("팔로잉 크리에이터는 활성 팔로우와 활성 크리에이터만 오래된 팔로우순으로 조회한다")
|
||||
fun shouldFindActiveFollowingCreatorsByOldestFollowOrder() {
|
||||
val viewer = saveMember("following-viewer", MemberRole.USER)
|
||||
val activeCreator = saveMember("following-active", MemberRole.CREATOR, profileImage = "active.png")
|
||||
val inactiveCreator = saveMember("following-inactive", MemberRole.CREATOR, isActive = false)
|
||||
@@ -57,8 +57,8 @@ class DefaultHomeFollowingQueryRepositoryTest @Autowired constructor(
|
||||
|
||||
val creators = repository.findFollowingCreators(memberId = viewer.id!!, limit = 20)
|
||||
|
||||
assertEquals(listOf(activeCreator.id!!, olderCreator.id!!), creators.map { it.creatorId })
|
||||
assertEquals("https://cdn.test/active.png", creators.first().creatorProfileImageUrl)
|
||||
assertEquals(listOf(olderCreator.id!!, activeCreator.id!!), creators.map { it.creatorId })
|
||||
assertEquals("https://cdn.test/active.png", creators.last().creatorProfileImageUrl)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user