Dodaj ekran startowy podczas sprawdzania sesji
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package pl.firmatpp.kierowca.ui
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class DriverUiStateTest {
|
||||
@Test
|
||||
fun startsOnInitializingScreenBeforeTokenCheckCompletes() {
|
||||
val state = DriverUiState()
|
||||
|
||||
assertEquals(DriverScreen.Initializing, state.screen)
|
||||
assertTrue(state.loading)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user