Skip to content

Commit

Permalink
Fix NavBackStackEntryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmb13 committed May 11, 2024
1 parent e959c98 commit 8eccc90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions requirektx-navigation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ kotlin {
}
commonTest.dependencies {
implementation(libs.kotlin.test)
implementation(project(":requirektx-test-helper"))
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith

class NavBackStackEntryTest {
class NavBackStackEntryTest : RoboTest() {
@Test
fun testMissingArgs() {
val entry = createNavBackstackEntry(arguments = null)
Expand All @@ -18,8 +18,8 @@ class NavBackStackEntryTest {
@Test
fun testPresentArgs() {
val argBundle = Bundle().apply {
// putString("hello", "world")
// putInt("answer", 42)
putString("hello", "world")
putInt("answer", 42)
}

val entry = createNavBackstackEntry(arguments = argBundle)
Expand Down

0 comments on commit 8eccc90

Please sign in to comment.