Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove direct usage of Lazy<CoreLogic> (WPB-10304) #3311

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: adjust tests
Signed-off-by: alexandreferris <ferris.alexandre@gmail.com>
alexandreferris committed Aug 12, 2024
commit 9436a0f79bf1b65e1b954cb28689c4dfcb359a07
Original file line number Diff line number Diff line change
@@ -756,7 +756,7 @@ class WireActivityViewModelTest {

private val viewModel by lazy {
WireActivityViewModel(
coreLogic = { coreLogic },
coreLogic = coreLogic,
dispatchers = TestDispatcherProvider(),
currentSessionFlow = { currentSessionFlow },
doesValidSessionExist = { doesValidSessionExist },
Original file line number Diff line number Diff line change
@@ -305,7 +305,7 @@ class CommonTopAppBarViewModelTest {
private val commonTopAppBarViewModel by lazy {
CommonTopAppBarViewModel(
currentScreenManager = currentScreenManager,
coreLogic = { coreLogic }
coreLogic = coreLogic
)
}

Original file line number Diff line number Diff line change
@@ -328,7 +328,7 @@ class FeatureFlagNotificationViewModelTest {

val viewModel: FeatureFlagNotificationViewModel by lazy {
FeatureFlagNotificationViewModel(
coreLogic = { coreLogic },
coreLogic = coreLogic,
currentSessionFlow = currentSessionFlow,
globalDataStore = globalDataStore,
disableAppLockUseCase = disableAppLockUseCase
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ class LegalHoldDeactivatedViewModelTest {

@MockK
lateinit var coreLogic: CoreLogic
val viewModel by lazy { LegalHoldDeactivatedViewModel(coreLogic = { coreLogic }) }
val viewModel by lazy { LegalHoldDeactivatedViewModel(coreLogic = coreLogic) }

init { MockKAnnotations.init(this) }
fun withNotCurrentSession() = apply {
Original file line number Diff line number Diff line change
@@ -308,7 +308,7 @@ class LegalHoldRequestedViewModelTest {
val viewModel by lazy {
LegalHoldRequestedViewModel(
validatePassword = validatePassword,
coreLogic = { coreLogic }
coreLogic = coreLogic
)
}