Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions app/src/test/java/com/hoc/flowmvi/CheckModulesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import io.mockk.mockkClass
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import org.junit.Rule
import org.koin.core.logger.Level
import org.koin.dsl.koinApplication
import org.koin.test.AutoCloseKoinTest
import org.koin.test.check.checkKoinModules
import org.koin.test.check.checkModules
import org.koin.test.mock.MockProviderRule
import kotlin.test.Test
import kotlin.time.ExperimentalTime
Expand All @@ -28,8 +30,13 @@ class CheckModulesTest : AutoCloseKoinTest() {

@Test
fun verifyKoinApp() {
checkKoinModules(allModules) {
withInstance<SavedStateHandle>()
koinApplication {
modules(allModules)
printLogger(Level.DEBUG)

checkModules {
withInstance<SavedStateHandle>()
}
}
}
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/deps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object deps {
}

object koin {
private const val version = "3.1.3"
private const val version = "3.1.4"

const val core = "io.insert-koin:koin-core:$version"
const val android = "io.insert-koin:koin-android:$version"
Expand Down