Skip to content

Commit 959ceff

Browse files
committed
fix tests
1 parent dc30be2 commit 959ceff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

leviathan-compose/src/commonTest/kotlin/com/composegears/leviathan/compose/LeviathanComposeTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ class LeviathanComposeTest {
3232
}
3333

3434
@Test
35-
fun `ViewModel # inject provides same instance within ViewModel scope`() {
35+
fun `ViewModel - inject provides same instance within ViewModel scope`() {
3636
val testDI = TestDI()
3737
val vm = TestVN(testDI)
3838
assertEquals(vm.service1, vm.service2)
3939
}
4040

4141
@Test
42-
fun `ViewModel # inject provides different instances after ViewModel reinitialization`() {
42+
fun `ViewModel - inject provides different instances after ViewModel reinitialization`() {
4343
val testDI = TestDI()
4444
val vmStore = ViewModelStore()
4545
val vm1 = TestVN(testDI)
@@ -52,7 +52,7 @@ class LeviathanComposeTest {
5252

5353
@Test
5454
@OptIn(ExperimentalTestApi::class)
55-
fun `Compose # inject provides same instance within composition scope`() = runComposeUiTest {
55+
fun `Compose - inject provides same instance within composition scope`() = runComposeUiTest {
5656
val testDI = TestDI()
5757
setContent {
5858
val service1 = inject(testDI.service)
@@ -63,7 +63,7 @@ class LeviathanComposeTest {
6363

6464
@Test
6565
@OptIn(ExperimentalTestApi::class)
66-
fun `Compose # inject provides new instance after recomposition`() = runComposeUiTest {
66+
fun `Compose - inject provides new instance after recomposition`() = runComposeUiTest {
6767
val testDI = TestDI()
6868
var outerService1: Service? = null
6969
var outerService2: Service? = null
@@ -105,7 +105,7 @@ class LeviathanComposeTest {
105105

106106
@Test
107107
@OptIn(ExperimentalTestApi::class)
108-
fun `Compose # retained injection persist across recomposition`() = runComposeUiTest {
108+
fun `Compose - retained injection persist across recomposition`() = runComposeUiTest {
109109
val testDI = TestDI()
110110
var retainedService: Service? = null
111111
var retainChecks = 0

0 commit comments

Comments
 (0)