From 10f480b88daaa5eb6ba6d3a5a5a0d22665b50d2c Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 2 Mar 2022 18:27:07 +0000 Subject: [PATCH] adding missing VectorOverrides param from test instance creation and removing unused VectorDatastore --- .../im/vector/app/features/onboarding/OnboardingViewModel.kt | 2 -- .../vector/app/features/onboarding/OnboardingViewModelTest.kt | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt b/vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt index bc53641419..1fadea0504 100644 --- a/vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt @@ -47,7 +47,6 @@ import im.vector.app.features.login.LoginMode import im.vector.app.features.login.ReAuthHelper import im.vector.app.features.login.ServerType import im.vector.app.features.login.SignMode -import im.vector.app.features.settings.VectorDataStore import kotlinx.coroutines.Job import kotlinx.coroutines.launch import org.matrix.android.sdk.api.MatrixPatterns.getDomain @@ -81,7 +80,6 @@ class OnboardingViewModel @AssistedInject constructor( private val homeServerHistoryService: HomeServerHistoryService, private val vectorFeatures: VectorFeatures, private val analyticsTracker: AnalyticsTracker, - private val vectorDataStore: VectorDataStore, private val vectorOverrides: VectorOverrides ) : VectorViewModel(initialState) { diff --git a/vector/src/test/java/im/vector/app/features/onboarding/OnboardingViewModelTest.kt b/vector/src/test/java/im/vector/app/features/onboarding/OnboardingViewModelTest.kt index fbc827b95d..81200fb749 100644 --- a/vector/src/test/java/im/vector/app/features/onboarding/OnboardingViewModelTest.kt +++ b/vector/src/test/java/im/vector/app/features/onboarding/OnboardingViewModelTest.kt @@ -20,6 +20,7 @@ import com.airbnb.mvrx.Fail import com.airbnb.mvrx.Loading import com.airbnb.mvrx.Success import com.airbnb.mvrx.test.MvRxTestRule +import im.vector.app.features.DefaultVectorOverrides import im.vector.app.features.login.ReAuthHelper import im.vector.app.test.fakes.FakeActiveSessionHolder import im.vector.app.test.fakes.FakeAnalyticsTracker @@ -110,7 +111,8 @@ class OnboardingViewModelTest { FakeStringProvider().instance, FakeHomeServerHistoryService(), FakeVectorFeatures(), - FakeAnalyticsTracker() + FakeAnalyticsTracker(), + DefaultVectorOverrides(), ) } }