Add more tests.

This commit is contained in:
Benoit Marty
2025-09-13 00:14:57 +02:00
parent 4b65d5cf9a
commit cca195a1a5
4 changed files with 35 additions and 0 deletions
@@ -74,4 +74,11 @@ class DefaultPreferencesEntryPointTest {
assertThat(result.plugins).contains(params)
assertThat(result.plugins).contains(callback)
}
@Test
fun `test initial target to nav target mapping`() {
assertThat(PreferencesEntryPoint.InitialTarget.Root.toNavTarget()).isEqualTo(PreferencesFlowNode.NavTarget.Root)
assertThat(PreferencesEntryPoint.InitialTarget.NotificationSettings.toNavTarget()).isEqualTo(PreferencesFlowNode.NavTarget.NotificationSettings)
assertThat(PreferencesEntryPoint.InitialTarget.NotificationTroubleshoot.toNavTarget()).isEqualTo(PreferencesFlowNode.NavTarget.TroubleshootNotifications)
}
}