Skip to content

Commit 0dcbf26

Browse files
committed
style: format code with ktfmt
1 parent 05de06e commit 0dcbf26

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

app/src/androidTest/java/com/android/unio/components/association/AssociationProfileTest.kt

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -258,28 +258,28 @@ class AssociationProfileTest : TearDown() {
258258
assert(associationViewModel.selectedAssociation.value!!.followersCount == currentCount)
259259
}
260260

261-
@Test
262-
fun testFollowOffline() {
263-
val context: Context = ApplicationProvider.getApplicationContext()
264-
composeTestRule.setContent {
265-
AssociationProfileScaffold(
266-
navigationAction, userViewModel, eventViewModel, associationViewModel) {}
267-
}
268-
269-
val currentCount = associationViewModel.selectedAssociation.value!!.followersCount
270-
271-
composeTestRule
272-
.onNodeWithTag(AssociationProfileTestTags.FOLLOW_BUTTON)
273-
.assertDisplayComponentInScroll()
274-
composeTestRule
275-
.onNodeWithText(context.getString(R.string.association_follow))
276-
.assertIsDisplayed()
277-
278-
composeTestRule.onNodeWithTag(AssociationProfileTestTags.FOLLOW_BUTTON).performClick()
279-
assert(!userViewModel.user.value?.followedAssociations!!.contains(associations.first().uid))
280-
assert(associationViewModel.selectedAssociation.value!!.followersCount == currentCount)
261+
@Test
262+
fun testFollowOffline() {
263+
val context: Context = ApplicationProvider.getApplicationContext()
264+
composeTestRule.setContent {
265+
AssociationProfileScaffold(
266+
navigationAction, userViewModel, eventViewModel, associationViewModel) {}
281267
}
282268

269+
val currentCount = associationViewModel.selectedAssociation.value!!.followersCount
270+
271+
composeTestRule
272+
.onNodeWithTag(AssociationProfileTestTags.FOLLOW_BUTTON)
273+
.assertDisplayComponentInScroll()
274+
composeTestRule
275+
.onNodeWithText(context.getString(R.string.association_follow))
276+
.assertIsDisplayed()
277+
278+
composeTestRule.onNodeWithTag(AssociationProfileTestTags.FOLLOW_BUTTON).performClick()
279+
assert(!userViewModel.user.value?.followedAssociations!!.contains(associations.first().uid))
280+
assert(associationViewModel.selectedAssociation.value!!.followersCount == currentCount)
281+
}
282+
283283
@Test
284284
fun testButtonBehavior() {
285285
composeTestRule.setContent {
@@ -306,7 +306,6 @@ class AssociationProfileTest : TearDown() {
306306
assertSnackBarIsDisplayed()
307307
}
308308

309-
310309
private fun assertSnackBarIsDisplayed() {
311310
composeTestRule.onNodeWithTag(AssociationProfileTestTags.SNACKBAR_HOST).assertIsDisplayed()
312311
composeTestRule.onNodeWithTag(AssociationProfileTestTags.SNACKBAR_ACTION_BUTTON).performClick()

0 commit comments

Comments
 (0)