mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Fixed failing test cases.
This commit is contained in:
parent
cd73d6eb89
commit
9b64e5d815
@ -128,8 +128,7 @@ class CopyMoveFileHandlerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun validateZimFileCanCopyOrMoveShouldReturnFalseWhenDetectingFileSystem() =
|
||||
runTest {
|
||||
fun validateZimFileCanCopyOrMoveShouldReturnFalseWhenDetectingFileSystem() = runTest {
|
||||
every { fileHandler.isBookLessThan4GB() } returns true
|
||||
prepareFileSystemAndFileForMockk(fileSystemState = DetectingFileSystem)
|
||||
|
||||
@ -140,7 +139,7 @@ class CopyMoveFileHandlerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun validateZimFileCanCopyOrMoveShouldReturnFalseWhenCannotWrite4GbFile() = runTest {
|
||||
fun validateZimFileCanCopyOrMoveShouldReturnFalseWhenCannotWrite4GbFile() = runBlocking {
|
||||
every { fileHandler.isBookLessThan4GB() } returns true
|
||||
every { fileHandler.showCopyMoveDialog() } just Runs
|
||||
every {
|
||||
|
@ -42,7 +42,7 @@ object Versions {
|
||||
|
||||
const val io_objectbox: String = "3.5.0"
|
||||
|
||||
const val io_mockk: String = "1.13.7"
|
||||
const val io_mockk: String = "1.13.13"
|
||||
|
||||
const val android_arch_lifecycle_extensions: String = "1.1.1"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user