android10 / android10/Android-CleanArchitecture-Kotlin
Navigator tests pass even if the destination Activity changes
Open
discussion
question
- Dominant language
- Kotlin
- Stars
- 4.8k
- Forks
- 929
- PR merge metrics
- No merged PRs in 30d
Description
Regarding `NavigatorTest`:
```kotlin
@Test fun `should forward user to movies screen`() {
whenever(authenticator.userLoggedIn()).thenReturn(true)
navigator.showMain(activityContext())
verify(authenticator).userLoggedIn()
RouteActivity::class shouldNavigateTo MoviesActivity::class
}
```
if you switch `MoviesActivity` with `LoginActivity` the test still passes
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.