Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed Jun 13, 2024
1 parent 68f8266 commit 8bc024d
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
)
}

Expand Down

0 comments on commit 8bc024d

Please sign in to comment.