mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-19 21:40:04 +03:00
Fix lint issues
This commit is contained in:
parent
c8fda158a3
commit
6aa4eb5e04
2 changed files with 4 additions and 4 deletions
vector/src
main/java/im/vector/app/features/settings/notifications
test/java/im/vector/app/features/settings/notifications
|
@ -20,4 +20,4 @@ import com.airbnb.mvrx.MavericksState
|
||||||
|
|
||||||
data class VectorSettingsPushRuleNotificationViewState(
|
data class VectorSettingsPushRuleNotificationViewState(
|
||||||
val isLoading: Boolean = false,
|
val isLoading: Boolean = false,
|
||||||
): MavericksState
|
) : MavericksState
|
||||||
|
|
|
@ -59,7 +59,7 @@ internal class VectorSettingsPushRuleNotificationViewModelTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@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
|
// Given
|
||||||
val viewModel = createViewModel()
|
val viewModel = createViewModel()
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ internal class VectorSettingsPushRuleNotificationViewModelTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@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
|
// Given
|
||||||
val viewModel = createViewModel()
|
val viewModel = createViewModel()
|
||||||
val failure = mockk<Throwable>()
|
val failure = mockk<Throwable>()
|
||||||
|
@ -161,7 +161,7 @@ internal class VectorSettingsPushRuleNotificationViewModelTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@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
|
// Given
|
||||||
val viewModel = createViewModel()
|
val viewModel = createViewModel()
|
||||||
val failure = mockk<Throwable>()
|
val failure = mockk<Throwable>()
|
||||||
|
|
Loading…
Add table
Reference in a new issue