Merge pull request #1258 from Jaehwa-Noh/rename-test-function

Rename test function, and delete explicit type argument
pull/1274/head
Don Turner 9 months ago committed by GitHub
commit e9565a567e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -167,7 +167,7 @@ class NiaAppStateTest {
}
@Test
fun stateIsOfflineWhenNetworkMonitorIsOffline() = runTest(UnconfinedTestDispatcher()) {
fun niaAppState_whenNetworkMonitorIsOffline_StateIsOffline() = runTest(UnconfinedTestDispatcher()) {
composeTestRule.setContent {
state = NiaAppState(
navController = NavHostController(LocalContext.current),
@ -214,7 +214,7 @@ class NiaAppStateTest {
@Composable
private fun rememberTestNavController(): TestNavHostController {
val context = LocalContext.current
return remember<TestNavHostController> {
return remember {
TestNavHostController(context).apply {
navigatorProvider.addNavigator(ComposeNavigator())
graph = createGraph(startDestination = "a") {

Loading…
Cancel
Save