Merge pull request #2948 from element-hq/feature/bma/konsistUpgrade

Konsist upgrade
This commit is contained in:
Benoit Marty
2024-05-31 09:18:43 +02:00
committed by GitHub
51 changed files with 66 additions and 45 deletions
@@ -39,7 +39,7 @@ import kotlinx.coroutines.test.runTest
import org.junit.Test
@OptIn(ExperimentalCoroutinesApi::class)
class AsyncIndicatorTests {
class AsyncIndicatorTest {
@Test
fun `initial state`() = runTest {
val state = AsyncIndicatorState()
@@ -21,7 +21,7 @@ import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.test.runTest
import org.junit.Test
class SnackbarDispatcherTests {
class SnackbarDispatcherTest {
@Test
fun `given an empty queue the flow emits a null item`() = runTest {
val snackbarDispatcher = SnackbarDispatcher()
@@ -17,8 +17,10 @@
package io.element.android.libraries.matrix.api.core
import android.os.Parcelable
import androidx.compose.runtime.Immutable
import kotlinx.parcelize.Parcelize
@Immutable
sealed interface RoomIdOrAlias : Parcelable {
@Parcelize
@JvmInline
@@ -24,7 +24,7 @@ import io.element.android.libraries.matrix.test.room.aRoomSummaryFilled
import kotlinx.coroutines.test.runTest
import org.junit.Test
class RoomListFilterTests {
class RoomListFilterTest {
private val regularRoom = aRoomSummaryFilled(
aRoomSummaryDetails(
isDirect = false
@@ -39,7 +39,7 @@ import org.matrix.rustcomponents.sdk.TaskHandle
// NOTE: this class is using a fake implementation of a Rust SDK interface which returns actual Rust objects with pointers.
// Since we don't access the data in those objects, this is fine for our tests, but that's as far as we can test this class.
class RoomSummaryListProcessorTests {
class RoomSummaryListProcessorTest {
private val summaries = MutableStateFlow<List<RoomSummary>>(emptyList())
@Test
@@ -32,7 +32,7 @@ import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class MediaSenderTests {
class MediaSenderTest {
@Test
fun `given an attachment when sending it the preprocessor always runs`() = runTest {
val preProcessor = FakeMediaPreProcessor()
@@ -32,7 +32,7 @@ import kotlinx.coroutines.test.runTest
import org.junit.Rule
import org.junit.Test
class RoomSelectPresenterTests {
class RoomSelectPresenterTest {
@get:Rule
val warmUpRule = WarmUpRule()
@@ -28,7 +28,7 @@ import kotlinx.coroutines.test.runTest
import org.junit.Before
import org.junit.Test
class DatabaseSessionStoreTests {
class DatabaseSessionStoreTest {
private lateinit var database: SessionDatabase
private lateinit var databaseSessionStore: DatabaseSessionStore
@@ -28,7 +28,7 @@ import io.element.android.services.analytics.test.FakeAnalyticsService
import kotlinx.coroutines.test.runTest
import org.junit.Test
class TroubleshootNotificationsPresenterTests {
class TroubleshootNotificationsPresenterTest {
@Test
fun `present - initial state`() = runTest {
val presenter = createTroubleshootNotificationsPresenter()