From 4ea2d65a9961a8e139004ebd2ef069e08adc4505 Mon Sep 17 00:00:00 2001 From: ohassine Date: Wed, 11 Dec 2024 17:07:16 +0100 Subject: [PATCH] chore: revert unit test --- .../ui/userprofile/teammigration/TeamMigrationViewModelTest.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/test/kotlin/com/wire/android/ui/userprofile/teammigration/TeamMigrationViewModelTest.kt b/app/src/test/kotlin/com/wire/android/ui/userprofile/teammigration/TeamMigrationViewModelTest.kt index e76498855e..fcaf3011bb 100644 --- a/app/src/test/kotlin/com/wire/android/ui/userprofile/teammigration/TeamMigrationViewModelTest.kt +++ b/app/src/test/kotlin/com/wire/android/ui/userprofile/teammigration/TeamMigrationViewModelTest.kt @@ -33,6 +33,7 @@ import io.mockk.coVerify import io.mockk.impl.annotations.MockK import io.mockk.mockk import io.mockk.verify +import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.test.runTest import org.amshove.kluent.internal.assertEquals import org.junit.jupiter.api.Assertions @@ -261,6 +262,8 @@ class TeamMigrationViewModelTest { init { MockKAnnotations.init(this, relaxUnitFun = true) + coEvery { getSelfUser() } returns flowOf() + coEvery { getTeamUrl() } returns "TeamUrl" } fun arrange() = this to TeamMigrationViewModel(