Skip to content

Commit

Permalink
fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Dec 14, 2022
1 parent dcd159e commit 4282ae8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ class KoinApplication private constructor() {
koin.close()
}

internal fun unloadModules(modules: List<Module>) {
koin.unloadModules(modules)
}

internal fun unloadModules(module: Module) {
koin.unloadModules(listOf(module))
}

companion object {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class KoinApplicationIsolationTest {
}

@Test
fun `can isolate koin apps & standalone`() {
fun `can isolate koin apps and standalone`() {
startKoin {
modules(
module {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ObjectScopeTest {
}

@Test
fun `typed scope & source`() {
fun `typed scope and source`() {
val koin = startKoin {
printLogger(Level.DEBUG)
modules(module {
Expand All @@ -58,7 +58,7 @@ class ObjectScopeTest {
}

@Test
fun `typed scope & source with get`() {
fun `typed scope and source with get`() {
val koin = startKoin {
printLogger(Level.DEBUG)
modules(module {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class AdditionalTypeBindingTest {
}

@Test
fun `should not conflict name & default type`() {
fun `should not conflict name and default type`() {
val app = koinApplication {
printLogger()
modules(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CreateOnStart {
}

@Test
fun `works with koin 2_2_3 and koin 3_0_2, breaks with koin 3_1_4`() {
fun `works with koin 2_2_3 and koin 3_0_2 breaks with koin 3_1_4`() {
startKoin {
modules(module {
single(createdAtStart = true) { InjectionTarget() }
Expand Down

0 comments on commit 4282ae8

Please sign in to comment.