From 6aa4eb5e040b2b2896f9c90fa12d8bbb5061f188 Mon Sep 17 00:00:00 2001
From: Florian Renaud <florianr@element.io>
Date: Fri, 10 Feb 2023 16:43:40 +0100
Subject: [PATCH] Fix lint issues

---
 .../VectorSettingsPushRuleNotificationViewState.kt          | 2 +-
 .../VectorSettingsPushRuleNotificationViewModelTest.kt      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsPushRuleNotificationViewState.kt b/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsPushRuleNotificationViewState.kt
index 5355f4f608..477727aee6 100644
--- a/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsPushRuleNotificationViewState.kt
+++ b/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsPushRuleNotificationViewState.kt
@@ -20,4 +20,4 @@ import com.airbnb.mvrx.MavericksState
 
 data class VectorSettingsPushRuleNotificationViewState(
         val isLoading: Boolean = false,
-): MavericksState
+) : MavericksState
diff --git a/vector/src/test/java/im/vector/app/features/settings/notifications/VectorSettingsPushRuleNotificationViewModelTest.kt b/vector/src/test/java/im/vector/app/features/settings/notifications/VectorSettingsPushRuleNotificationViewModelTest.kt
index ff1cedee86..04a22bc21f 100644
--- a/vector/src/test/java/im/vector/app/features/settings/notifications/VectorSettingsPushRuleNotificationViewModelTest.kt
+++ b/vector/src/test/java/im/vector/app/features/settings/notifications/VectorSettingsPushRuleNotificationViewModelTest.kt
@@ -59,7 +59,7 @@ internal class VectorSettingsPushRuleNotificationViewModelTest {
     }
 
     @Test
-    fun `given a ruleId, when the rule is checked or unchecked, then the related rules are also updated and a view event is posted`() = runTest {
+    fun `given a ruleId, when the rule is checked or unchecked with no error, then the expected view event is posted`() = runTest {
         // Given
         val viewModel = createViewModel()
 
@@ -105,7 +105,7 @@ internal class VectorSettingsPushRuleNotificationViewModelTest {
     }
 
     @Test
-    fun `given a ruleId, when the rule is checked and an error is thrown, then all the related rules are updated and an event is posted with the failure`() = runTest {
+    fun `given a ruleId, when the rule is checked with an error, then expected view event is posted`() = runTest {
         // Given
         val viewModel = createViewModel()
         val failure = mockk<Throwable>()
@@ -161,7 +161,7 @@ internal class VectorSettingsPushRuleNotificationViewModelTest {
     }
 
     @Test
-    fun `given a ruleId, when the rule is unchecked and an error is thrown, then all the related rules are updated and an event is posted with the failure`() = runTest {
+    fun `given a ruleId, when the rule is unchecked with an error, then the expected view event is posted`() = runTest {
         // Given
         val viewModel = createViewModel()
         val failure = mockk<Throwable>()