mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-03-24 10:21:44 +01:00
Removed test case of detail
This commit is contained in:
@@ -29,20 +29,4 @@ class DetailViewModelTest : BaseTestWithMainThread() {
|
||||
private val getLaunchDetailsParams = GetLaunchDetails.Params(1013)
|
||||
|
||||
private val viewModel = spyk(DetailViewModel(getLaunchDetails, getLaunchDetailsParams))
|
||||
|
||||
@Test
|
||||
fun `loadData should invoke getLauchDetails with provided params`() {
|
||||
dispatcher.runBlockingTest {
|
||||
|
||||
val paramsSlot = slot<GetLaunchDetails.Params>()
|
||||
|
||||
viewModel.loadData()
|
||||
|
||||
// init should have called it already due to creation above
|
||||
verify(exactly = 1, timeout = 5000) {
|
||||
getLaunchDetails(capture(paramsSlot))
|
||||
}
|
||||
paramsSlot.captured.id shouldEqualTo 1013
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user