Skip to content

Commit 0b6faaf

Browse files
authored
fix(shared/router): update NavigateToTest to remove Lab after consolidation (#787)
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 7556121 commit 0b6faaf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • apps/flipcash/shared/router/src/test/kotlin/com/flipcash/app/router/internal

apps/flipcash/shared/router/src/test/kotlin/com/flipcash/app/router/internal/NavigateToTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class NavigateToTest {
288288
AppRoute.Main.Sheet(AppRoute.Sheets.Wallet),
289289
)
290290

291-
navigator.openAsSheet(AppRoute.Sheets.Lab)
291+
navigator.openAsSheet(AppRoute.Sheets.ShareApp)
292292

293293
assertNotNull(navigator.pendingSheetDismiss)
294294
// Backstack unchanged until the callback fires
@@ -302,15 +302,15 @@ class NavigateToTest {
302302
AppRoute.Main.Sheet(AppRoute.Sheets.Wallet),
303303
)
304304

305-
navigator.openAsSheet(AppRoute.Sheets.Lab)
305+
navigator.openAsSheet(AppRoute.Sheets.ShareApp)
306306

307307
// Simulate dismiss: remove old sheet entry, then callback fires
308308
navigator.backStack.removeAt(navigator.backStack.lastIndex)
309309
navigator.pendingSheetDismiss!!.invoke()
310310

311311
val last = navigator.backStack.last()
312312
assertIs<AppRoute.Main.Sheet>(last)
313-
assertEquals(AppRoute.Sheets.Lab, last.initialRoute)
313+
assertEquals(AppRoute.Sheets.ShareApp, last.initialRoute)
314314
}
315315

316316
@Test
@@ -321,7 +321,7 @@ class NavigateToTest {
321321
)
322322
val initialGeneration = navigator.sheetGeneration
323323

324-
navigator.openAsSheet(AppRoute.Sheets.Lab)
324+
navigator.openAsSheet(AppRoute.Sheets.ShareApp)
325325

326326
// Simulate dismiss
327327
navigator.backStack.removeAt(navigator.backStack.lastIndex)
@@ -334,7 +334,7 @@ class NavigateToTest {
334334
fun `openAsSheet without existing sheet navigates directly`() {
335335
val navigator = createNavigator(AppRoute.Main.Scanner)
336336

337-
navigator.openAsSheet(AppRoute.Sheets.Lab)
337+
navigator.openAsSheet(AppRoute.Sheets.ShareApp)
338338

339339
assertNull(navigator.pendingSheetDismiss)
340340
assertEquals(2, navigator.backStack.size)

0 commit comments

Comments
 (0)