mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-11-18 16:48:16 +01:00
Removed test case of detail
This commit is contained in:
1 parent
a68dac7b91
commit
ac8920731b
4 files changed
+15
-37
No files matched your search
@@ -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