From 3b883f6684220fd1b1d9828bdc361fc6b53b1cce Mon Sep 17 00:00:00 2001 From: wjdrjs00 Date: Tue, 28 Oct 2025 15:37:10 +0900 Subject: [PATCH 1/4] =?UTF-8?q?Chore:=20orbit-mvi=20=EB=9D=BC=EC=9D=B4?= =?UTF-8?q?=EB=B8=8C=EB=9F=AC=EB=A6=AC=20=EB=B2=84=EC=A0=84=EC=97=85=20(v6?= =?UTF-8?q?.1=20->=20v10.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9b5b856a..c094ec84 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -50,7 +50,7 @@ espressoCore = "3.6.1" ## Other material = "1.12.0" -orbit = "6.1.0" +orbit = "10.0.0" javax = "1" kakaoLogin = "2.21.4" lottie-compose = "6.6.0" From b5345841d172b547c12552eef6d7f00031b2240e Mon Sep 17 00:00:00 2001 From: wjdrjs00 Date: Tue, 28 Oct 2025 15:37:47 +0900 Subject: [PATCH 2/4] =?UTF-8?q?Refactor:=20=EB=9D=BC=EC=9D=B4=EB=B8=8C?= =?UTF-8?q?=EB=9F=AC=EB=A6=AC=20=EB=B3=80=EA=B2=BD=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EB=8C=80=EC=9D=91=20(SimpleSyntax=20->=20Syntax)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/mviviewmodel/MviViewModel.kt | 13 +++---------- .../presentation/emotion/EmotionViewModel.kt | 4 ++-- .../bitnagil/presentation/guide/GuideViewModel.kt | 4 ++-- .../bitnagil/presentation/home/HomeViewModel.kt | 5 +++-- .../bitnagil/presentation/login/LoginViewModel.kt | 4 ++-- .../bitnagil/presentation/mypage/MyPageViewModel.kt | 4 ++-- .../presentation/onboarding/OnBoardingViewModel.kt | 4 ++-- .../recommendroutine/RecommendRoutineViewModel.kt | 4 ++-- .../routinelist/RoutineListViewModel.kt | 4 ++-- .../presentation/setting/SettingViewModel.kt | 4 ++-- .../bitnagil/presentation/splash/SplashViewModel.kt | 4 ++-- .../presentation/terms/TermsAgreementViewModel.kt | 4 ++-- .../presentation/withdrawal/WithdrawalViewModel.kt | 4 ++-- .../writeroutine/WriteRoutineViewModel.kt | 4 ++-- .../common/mviviewmodel/MviViewModelTest.kt | 4 ++-- 15 files changed, 32 insertions(+), 38 deletions(-) diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModel.kt index 1e4ad630..f4afb475 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModel.kt @@ -5,10 +5,7 @@ import androidx.lifecycle.ViewModel import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.StateFlow import org.orbitmvi.orbit.ContainerHost -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax -import org.orbitmvi.orbit.syntax.simple.intent -import org.orbitmvi.orbit.syntax.simple.postSideEffect -import org.orbitmvi.orbit.syntax.simple.reduce +import org.orbitmvi.orbit.syntax.Syntax import org.orbitmvi.orbit.viewmodel.container abstract class MviViewModel( @@ -20,12 +17,8 @@ abstract class MviViewModel get() = container.stateFlow val sideEffectFlow: Flow get() = container.sideEffectFlow - protected suspend fun SimpleSyntax.sendSideEffect(sideEffect: SIDE_EFFECT) = postSideEffect(sideEffect) - - protected abstract suspend fun SimpleSyntax.reduceState( - intent: INTENT, - state: STATE, - ): STATE? + protected suspend fun Syntax.sendSideEffect(sideEffect: SIDE_EFFECT) = postSideEffect(sideEffect) + protected abstract suspend fun Syntax.reduceState(intent: INTENT, state: STATE): STATE? fun sendIntent(intent: INTENT) = intent { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/emotion/EmotionViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/emotion/EmotionViewModel.kt index 72cf4913..8bc3a3cb 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/emotion/EmotionViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/emotion/EmotionViewModel.kt @@ -15,7 +15,7 @@ import com.threegap.bitnagil.presentation.emotion.model.mvi.EmotionState import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.delay import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -47,7 +47,7 @@ class EmotionViewModel @Inject constructor( } } - override suspend fun SimpleSyntax.reduceState(intent: EmotionIntent, state: EmotionState): EmotionState? { + override suspend fun Syntax.reduceState(intent: EmotionIntent, state: EmotionState): EmotionState? { when (intent) { is EmotionIntent.EmotionListLoadSuccess -> { return state.copy( diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/guide/GuideViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/guide/GuideViewModel.kt index 30accb7b..d92b9b73 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/guide/GuideViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/guide/GuideViewModel.kt @@ -6,7 +6,7 @@ import com.threegap.bitnagil.presentation.guide.model.GuideIntent import com.threegap.bitnagil.presentation.guide.model.GuideSideEffect import com.threegap.bitnagil.presentation.guide.model.GuideState import dagger.hilt.android.lifecycle.HiltViewModel -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -16,7 +16,7 @@ class GuideViewModel @Inject constructor( initState = GuideState(), savedStateHandle = savedStateHandle, ) { - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: GuideIntent, state: GuideState, ): GuideState? { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt index 3754c7ad..1acd31bf 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt @@ -22,13 +22,14 @@ import com.threegap.bitnagil.presentation.home.model.toUiModel import com.threegap.bitnagil.presentation.home.util.getCurrentWeekDays import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.FlowPreview +import kotlinx.coroutines.async import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.debounce import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.drop import kotlinx.coroutines.flow.map import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import java.time.LocalDate import javax.inject.Inject @@ -61,7 +62,7 @@ class HomeViewModel @Inject constructor( fetchTodayEmotion(LocalDate.now()) } - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: HomeIntent, state: HomeState, ): HomeState? { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/login/LoginViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/login/LoginViewModel.kt index 2dfc4304..f22831b0 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/login/LoginViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/login/LoginViewModel.kt @@ -11,7 +11,7 @@ import com.threegap.bitnagil.presentation.login.model.LoginSideEffect import com.threegap.bitnagil.presentation.login.model.LoginState import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -22,7 +22,7 @@ class LoginViewModel @Inject constructor( initState = LoginState(), savedStateHandle = savedStateHandle, ) { - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: LoginIntent, state: LoginState, ): LoginState? = diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/mypage/MyPageViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/mypage/MyPageViewModel.kt index cd57e4c1..3eb07818 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/mypage/MyPageViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/mypage/MyPageViewModel.kt @@ -9,7 +9,7 @@ import com.threegap.bitnagil.presentation.mypage.model.MyPageSideEffect import com.threegap.bitnagil.presentation.mypage.model.MyPageState import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -41,7 +41,7 @@ class MyPageViewModel @Inject constructor( } } - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: MyPageIntent, state: MyPageState, ): MyPageState { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/onboarding/OnBoardingViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/onboarding/OnBoardingViewModel.kt index 52d28cec..905e0ba7 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/onboarding/OnBoardingViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/onboarding/OnBoardingViewModel.kt @@ -25,7 +25,7 @@ import kotlinx.coroutines.Job import kotlinx.coroutines.async import kotlinx.coroutines.isActive import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax @HiltViewModel(assistedFactory = OnBoardingViewModel.Factory::class) class OnBoardingViewModel @AssistedInject constructor( @@ -119,7 +119,7 @@ class OnBoardingViewModel @AssistedInject constructor( } } - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: OnBoardingIntent, state: OnBoardingState, ): OnBoardingState? { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/recommendroutine/RecommendRoutineViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/recommendroutine/RecommendRoutineViewModel.kt index 86a04932..d1fffbd4 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/recommendroutine/RecommendRoutineViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/recommendroutine/RecommendRoutineViewModel.kt @@ -15,7 +15,7 @@ import com.threegap.bitnagil.presentation.recommendroutine.model.RecommendRoutin import com.threegap.bitnagil.presentation.recommendroutine.model.toUiModel import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -35,7 +35,7 @@ class RecommendRoutineViewModel @Inject constructor( private var recommendRoutines: RecommendRoutinesUiModel = RecommendRoutinesUiModel() - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: RecommendRoutineIntent, state: RecommendRoutineState, ): RecommendRoutineState? = when (intent) { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/routinelist/RoutineListViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/routinelist/RoutineListViewModel.kt index 367317c3..e5113f80 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/routinelist/RoutineListViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/routinelist/RoutineListViewModel.kt @@ -15,7 +15,7 @@ import com.threegap.bitnagil.presentation.routinelist.model.RoutineListState import com.threegap.bitnagil.presentation.routinelist.model.toUiModel import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import java.time.LocalDate import javax.inject.Inject @@ -43,7 +43,7 @@ class RoutineListViewModel @Inject constructor( observeRoutineChanges() } - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: RoutineListIntent, state: RoutineListState, ): RoutineListState? { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/setting/SettingViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/setting/SettingViewModel.kt index 9dba8c28..2f2fbce4 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/setting/SettingViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/setting/SettingViewModel.kt @@ -11,7 +11,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.Job import kotlinx.coroutines.delay import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -25,7 +25,7 @@ class SettingViewModel @Inject constructor( private var setServiceAlarmJob: Job? = null private var setPushAlarmJob: Job? = null - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: SettingIntent, state: SettingState, ): SettingState? { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/splash/SplashViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/splash/SplashViewModel.kt index 8379d650..ac04adc2 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/splash/SplashViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/splash/SplashViewModel.kt @@ -13,7 +13,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.delay import kotlinx.coroutines.launch import kotlinx.coroutines.withTimeoutOrNull -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -30,7 +30,7 @@ class SplashViewModel @Inject constructor( performForceUpdateCheck() } - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: SplashIntent, state: SplashState, ): SplashState? = diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/terms/TermsAgreementViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/terms/TermsAgreementViewModel.kt index b4ff7a83..132ea88a 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/terms/TermsAgreementViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/terms/TermsAgreementViewModel.kt @@ -11,7 +11,7 @@ import com.threegap.bitnagil.presentation.terms.model.TermsAgreementSideEffect import com.threegap.bitnagil.presentation.terms.model.TermsAgreementState import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -22,7 +22,7 @@ class TermsAgreementViewModel @Inject constructor( initState = TermsAgreementState(), savedStateHandle = savedStateHandle, ) { - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: TermsAgreementIntent, state: TermsAgreementState, ): TermsAgreementState? = when (intent) { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/withdrawal/WithdrawalViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/withdrawal/WithdrawalViewModel.kt index 28b80253..6455ee48 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/withdrawal/WithdrawalViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/withdrawal/WithdrawalViewModel.kt @@ -9,7 +9,7 @@ import com.threegap.bitnagil.presentation.withdrawal.model.WithdrawalSideEffect import com.threegap.bitnagil.presentation.withdrawal.model.WithdrawalState import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import javax.inject.Inject @HiltViewModel @@ -20,7 +20,7 @@ class WithdrawalViewModel @Inject constructor( savedStateHandle = savedStateHandle, initState = WithdrawalState(), ) { - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: WithdrawalIntent, state: WithdrawalState, ): WithdrawalState? { diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/writeroutine/WriteRoutineViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/writeroutine/WriteRoutineViewModel.kt index 08fd513d..5f8f869e 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/writeroutine/WriteRoutineViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/writeroutine/WriteRoutineViewModel.kt @@ -25,7 +25,7 @@ import dagger.assisted.AssistedFactory import dagger.assisted.AssistedInject import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.launch -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax @HiltViewModel(assistedFactory = WriteRoutineViewModel.Factory::class) class WriteRoutineViewModel @AssistedInject constructor( @@ -133,7 +133,7 @@ class WriteRoutineViewModel @AssistedInject constructor( } } - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: WriteRoutineIntent, state: WriteRoutineState, ): WriteRoutineState? { diff --git a/presentation/src/test/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModelTest.kt b/presentation/src/test/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModelTest.kt index 912711c7..39c276fa 100644 --- a/presentation/src/test/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModelTest.kt +++ b/presentation/src/test/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModelTest.kt @@ -6,7 +6,7 @@ import kotlinx.coroutines.test.runTest import kotlinx.parcelize.Parcelize import org.junit.Before import org.junit.Test -import org.orbitmvi.orbit.syntax.simple.SimpleSyntax +import org.orbitmvi.orbit.syntax.Syntax import org.orbitmvi.orbit.test.test @ExperimentalCoroutinesApi @@ -56,7 +56,7 @@ class MviViewModelTest { initState: SampleState, savedStateHandle: SavedStateHandle, ) : MviViewModel(initState, savedStateHandle) { - override suspend fun SimpleSyntax.reduceState( + override suspend fun Syntax.reduceState( intent: SampleIntent, state: SampleState, ): SampleState? { From 1b707befd23e7b0e41da2e9062d71ad9d67d2e71 Mon Sep 17 00:00:00 2001 From: wjdrjs00 Date: Tue, 28 Oct 2025 16:26:08 +0900 Subject: [PATCH 3/4] =?UTF-8?q?chore:=20import=20=EB=AC=B8=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/threegap/bitnagil/presentation/home/HomeViewModel.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt b/presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt index 1acd31bf..6439515b 100644 --- a/presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt +++ b/presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt @@ -22,7 +22,6 @@ import com.threegap.bitnagil.presentation.home.model.toUiModel import com.threegap.bitnagil.presentation.home.util.getCurrentWeekDays import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.FlowPreview -import kotlinx.coroutines.async import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.debounce import kotlinx.coroutines.flow.distinctUntilChanged From 4ddb0d72b9c93342af096e48dbf9e9abb3c42c26 Mon Sep 17 00:00:00 2001 From: wjdrjs00 Date: Wed, 29 Oct 2025 18:00:08 +0900 Subject: [PATCH 4/4] =?UTF-8?q?Test:=20State=20=EC=B4=88=EA=B8=B0=20?= =?UTF-8?q?=EC=83=81=ED=83=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/common/mviviewmodel/MviViewModelTest.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/presentation/src/test/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModelTest.kt b/presentation/src/test/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModelTest.kt index 39c276fa..d4399c4d 100644 --- a/presentation/src/test/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModelTest.kt +++ b/presentation/src/test/java/com/threegap/bitnagil/presentation/common/mviviewmodel/MviViewModelTest.kt @@ -26,7 +26,6 @@ class MviViewModelTest { containerHost.sendIntent(SampleIntent.Decrease(number = 2)) containerHost.sendIntent(SampleIntent.Increase(number = 3)) - expectState { SampleState() } expectState { SampleState(count = 1) } expectState { SampleState(count = -1) } expectState { SampleState(count = 2) } @@ -42,7 +41,6 @@ class MviViewModelTest { containerHost.sendIntent(SampleIntent.Decrease(number = 2)) containerHost.sendIntent(SampleIntent.Increase(number = 3)) - expectState { SampleState() } expectState { SampleState(count = 1) } expectSideEffect(SampleSideEffect.ShowToast("Clear")) expectState { SampleState() }