From 8bc024d0dd03ef06ad68ed78b3e61d0ea46339b9 Mon Sep 17 00:00:00 2001 From: Oussama Hassine Date: Thu, 13 Jun 2024 11:58:49 +0200 Subject: [PATCH] fix: unit test --- .../android/ui/WireActivityViewModelTest.kt | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/app/src/test/kotlin/com/wire/android/ui/WireActivityViewModelTest.kt b/app/src/test/kotlin/com/wire/android/ui/WireActivityViewModelTest.kt index b19862723c4..f680c683e0c 100644 --- a/app/src/test/kotlin/com/wire/android/ui/WireActivityViewModelTest.kt +++ b/app/src/test/kotlin/com/wire/android/ui/WireActivityViewModelTest.kt @@ -741,26 +741,26 @@ class WireActivityViewModelTest { private val viewModel by lazy { WireActivityViewModel( - coreLogic = coreLogic, - dispatchers = TestDispatcherProvider(), - currentSessionFlow = currentSessionFlow, - doesValidSessionExist = doesValidSessionExist, - getServerConfigUseCase = getServerConfigUseCase, - deepLinkProcessor = deepLinkProcessor, - authServerConfigProvider = authServerConfigProvider, - getSessions = getSessionsUseCase, - accountSwitch = switchAccount, - migrationManager = migrationManager, - servicesManager = servicesManager, + coreLogic = { coreLogic }, + dispatchers = { TestDispatcherProvider() }, + currentSessionFlow = { currentSessionFlow }, + doesValidSessionExist = { doesValidSessionExist }, + getServerConfigUseCase = { getServerConfigUseCase }, + deepLinkProcessor = { deepLinkProcessor }, + authServerConfigProvider = { authServerConfigProvider }, + getSessions = { getSessionsUseCase }, + accountSwitch = { switchAccount }, + migrationManager = { migrationManager }, + servicesManager = { servicesManager }, observeSyncStateUseCaseProviderFactory = observeSyncStateUseCaseProviderFactory, - observeIfAppUpdateRequired = observeIfAppUpdateRequired, - observeNewClients = observeNewClients, - clearNewClientsForUser = clearNewClientsForUser, - currentScreenManager = currentScreenManager, + observeIfAppUpdateRequired = { observeIfAppUpdateRequired }, + observeNewClients = { observeNewClients }, + clearNewClientsForUser = { clearNewClientsForUser }, + currentScreenManager = { currentScreenManager }, observeScreenshotCensoringConfigUseCaseProviderFactory = observeScreenshotCensoringConfigUseCaseProviderFactory, - globalDataStore = globalDataStore, + globalDataStore = { globalDataStore }, observeIfE2EIRequiredDuringLoginUseCaseProviderFactory = observeIfE2EIRequiredDuringLoginUseCaseProviderFactory, - workManager = workManager + workManager = { workManager } ) }