From 09f95f1e98ddd89b55201891c9f1424d996bbd8b Mon Sep 17 00:00:00 2001 From: Maxime NATUREL <46314705+mnaturel@users.noreply.github.com> Date: Thu, 16 Mar 2023 16:57:11 +0100 Subject: [PATCH] Fixing CreateRoomRootPresenterTests --- .../createroom/impl/root/CreateRoomRootPresenterTests.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/createroom/impl/src/test/kotlin/io/element/android/features/createroom/impl/root/CreateRoomRootPresenterTests.kt b/features/createroom/impl/src/test/kotlin/io/element/android/features/createroom/impl/root/CreateRoomRootPresenterTests.kt index 6a852f4599..d8e171892d 100644 --- a/features/createroom/impl/src/test/kotlin/io/element/android/features/createroom/impl/root/CreateRoomRootPresenterTests.kt +++ b/features/createroom/impl/src/test/kotlin/io/element/android/features/createroom/impl/root/CreateRoomRootPresenterTests.kt @@ -22,7 +22,7 @@ import app.cash.molecule.RecompositionClock import app.cash.molecule.moleculeFlow import app.cash.turbine.test import com.google.common.truth.Truth.assertThat -import io.element.android.features.selectusers.impl.DefaultSelectUsersPresenter +import io.element.android.features.selectusers.impl.DefaultSelectSingleUserPresenter import io.element.android.libraries.matrix.api.core.UserId import io.element.android.libraries.matrix.ui.model.MatrixUser import kotlinx.coroutines.ExperimentalCoroutinesApi @@ -33,7 +33,7 @@ class CreateRoomRootPresenterTests { @Test fun `present - initial state`() = runTest { - val selectUsersPresenter = DefaultSelectUsersPresenter() + val selectUsersPresenter = DefaultSelectSingleUserPresenter() val presenter = CreateRoomRootPresenter(selectUsersPresenter) moleculeFlow(RecompositionClock.Immediate) { presenter.present() @@ -45,7 +45,7 @@ class CreateRoomRootPresenterTests { @Test fun `present - trigger action buttons`() = runTest { - val selectUsersPresenter = DefaultSelectUsersPresenter() + val selectUsersPresenter = DefaultSelectSingleUserPresenter() val presenter = CreateRoomRootPresenter(selectUsersPresenter) moleculeFlow(RecompositionClock.Immediate) { presenter.present() @@ -57,7 +57,7 @@ class CreateRoomRootPresenterTests { @Test fun `present - trigger start DM action`() = runTest { - val selectUsersPresenter = DefaultSelectUsersPresenter() + val selectUsersPresenter = DefaultSelectSingleUserPresenter() val presenter = CreateRoomRootPresenter(selectUsersPresenter) moleculeFlow(RecompositionClock.Immediate) { presenter.present()