Fixing a name of a mocked component

This commit is contained in:
Maxime NATUREL 2022-10-25 17:05:01 +02:00
parent a3df90ae3e
commit e0d511a488
1 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ class OtherSessionsViewModelTest {
private val fakeActiveSessionHolder = FakeActiveSessionHolder()
private val fakeStringProvider = FakeStringProvider()
private val fakeGetDeviceFullInfoListUseCase = mockk<GetDeviceFullInfoListUseCase>()
private val fakeRefreshDevicesUseCaseUseCase = mockk<RefreshDevicesUseCase>(relaxed = true)
private val fakeRefreshDevicesUseCase = mockk<RefreshDevicesUseCase>(relaxed = true)
private val fakeSignoutSessionsUseCase = FakeSignoutSessionsUseCase()
private val fakeInterceptSignoutFlowResponseUseCase = mockk<InterceptSignoutFlowResponseUseCase>()
private val fakePendingAuthHandler = FakePendingAuthHandler()
@ -85,7 +85,7 @@ class OtherSessionsViewModelTest {
signoutSessionsUseCase = fakeSignoutSessionsUseCase.instance,
interceptSignoutFlowResponseUseCase = fakeInterceptSignoutFlowResponseUseCase,
pendingAuthHandler = fakePendingAuthHandler.instance,
refreshDevicesUseCase = fakeRefreshDevicesUseCaseUseCase,
refreshDevicesUseCase = fakeRefreshDevicesUseCase,
)
@Before
@ -352,7 +352,7 @@ class OtherSessionsViewModelTest {
.assertEvent { it is OtherSessionsViewEvents.SignoutSuccess }
.finish()
verify {
fakeRefreshDevicesUseCaseUseCase.execute()
fakeRefreshDevicesUseCase.execute()
}
}
@ -388,7 +388,7 @@ class OtherSessionsViewModelTest {
.assertEvent { it is OtherSessionsViewEvents.SignoutSuccess }
.finish()
verify {
fakeRefreshDevicesUseCaseUseCase.execute()
fakeRefreshDevicesUseCase.execute()
}
}