Skip to content

Commit 6b9f231

Browse files
Test Fix
1 parent 688cbbe commit 6b9f231

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/other-ksp/src/main/kotlin/org/koin/example/qualifier/QualifierComponents.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ public class QualifierModule {
3737
public fun anotherList(): StuffList = StuffList(listOf(Stuff("1"),Stuff("2")))
3838

3939
@Single
40+
@Named("another-counter")
4041
public fun anotherCounter(@Named("another-counter") stuffs: StuffList): StuffCounter = StuffCounter(stuffs.list,"another-counter")
4142
}

examples/other-ksp/src/test/kotlin/org.koin.example/TestModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class TestModule {
113113
assertEquals(ints,koin.get<MyInjectFactory>{ parametersOf(ints) }.ints)
114114

115115
assertEquals(2,koin.get<StuffList>(named("another-counter")).list.size)
116-
assertEquals("another-counter",koin.get<StuffCounter>().name)
116+
assertEquals("another-counter",koin.get<StuffCounter>(named("another-counter")).name)
117117

118118
assertNotNull(koin.getOrNull<MyType.MyChildType>())
119119

0 commit comments

Comments
 (0)