File tree 2 files changed +11
-4
lines changed
app/src/test/java/com/hoc/flowmvi
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,10 @@ import io.mockk.mockkClass
6
6
import kotlinx.coroutines.ExperimentalCoroutinesApi
7
7
import kotlinx.coroutines.FlowPreview
8
8
import org.junit.Rule
9
+ import org.koin.core.logger.Level
10
+ import org.koin.dsl.koinApplication
9
11
import org.koin.test.AutoCloseKoinTest
10
- import org.koin.test.check.checkKoinModules
12
+ import org.koin.test.check.checkModules
11
13
import org.koin.test.mock.MockProviderRule
12
14
import kotlin.test.Test
13
15
import kotlin.time.ExperimentalTime
@@ -28,8 +30,13 @@ class CheckModulesTest : AutoCloseKoinTest() {
28
30
29
31
@Test
30
32
fun verifyKoinApp () {
31
- checkKoinModules(allModules) {
32
- withInstance<SavedStateHandle >()
33
+ koinApplication {
34
+ modules(allModules)
35
+ printLogger(Level .DEBUG )
36
+
37
+ checkModules {
38
+ withInstance<SavedStateHandle >()
39
+ }
33
40
}
34
41
}
35
42
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ object deps {
60
60
}
61
61
62
62
object koin {
63
- private const val version = " 3.1.3 "
63
+ private const val version = " 3.1.4 "
64
64
65
65
const val core = " io.insert-koin:koin-core:$version "
66
66
const val android = " io.insert-koin:koin-android:$version "
You can’t perform that action at this time.
0 commit comments