Skip to content

Commit

Permalink
[#333] 테스트 코드 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
taehwandev committed Jun 10, 2024
1 parent d2676a1 commit 57cb172
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.droidknights.app.feature.contributor
import app.cash.turbine.test
import com.droidknights.app.core.domain.usecase.GetContributorsUseCase
import com.droidknights.app.core.model.Contributor
import com.droidknights.app.core.model.ContributorGroup
import com.droidknights.app.core.testing.rule.MainDispatcherRule
import com.droidknights.app.feature.contributor.model.ContributorsUiState
import io.mockk.coEvery
Expand Down Expand Up @@ -34,13 +35,16 @@ internal class ContributorViewModelTest {
}

companion object {
private val fakeContributors = mapOf(
2024 to listOf(
Contributor(
id = 0L,
name = "test name",
imageUrl = "test image url",
githubUrl = "test github url",
private val fakeContributors = listOf(
ContributorGroup(
year = 2024,
contributors = listOf(
Contributor(
id = 0L,
name = "test name",
imageUrl = "test image url",
githubUrl = "test github url",
),
),
)
)
Expand Down

0 comments on commit 57cb172

Please sign in to comment.