mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-12 17:08:59 -04:00
Refactored the ZimManageViewModelTest
according to this new change.
This commit is contained in:
parent
079dd2f3c1
commit
a3341fc280
@ -384,7 +384,7 @@ class ZimManageViewModelTest {
|
|||||||
url = ""
|
url = ""
|
||||||
)
|
)
|
||||||
val bookWithInactiveLanguage = book(
|
val bookWithInactiveLanguage = book(
|
||||||
id = "3",
|
id = "4",
|
||||||
language = "inactiveLanguage",
|
language = "inactiveLanguage",
|
||||||
url = ""
|
url = ""
|
||||||
)
|
)
|
||||||
@ -415,10 +415,12 @@ class ZimManageViewModelTest {
|
|||||||
viewModel.libraryItems.test()
|
viewModel.libraryItems.test()
|
||||||
.assertValue(
|
.assertValue(
|
||||||
listOf(
|
listOf(
|
||||||
LibraryListItem.DividerItem(Long.MAX_VALUE, R.string.your_languages),
|
LibraryListItem.DividerItem(Long.MAX_VALUE, R.string.downloading),
|
||||||
|
LibraryListItem.LibraryDownloadItem(downloadModel(book = bookDownloading)),
|
||||||
|
LibraryListItem.DividerItem(Long.MAX_VALUE - 1, R.string.your_languages),
|
||||||
LibraryListItem.BookItem(bookWithActiveLanguage, CanWrite4GbFile),
|
LibraryListItem.BookItem(bookWithActiveLanguage, CanWrite4GbFile),
|
||||||
LibraryListItem.DividerItem(Long.MIN_VALUE, R.string.other_languages),
|
LibraryListItem.DividerItem(Long.MIN_VALUE, R.string.other_languages),
|
||||||
LibraryListItem.LibraryDownloadItem(downloadModel(book = bookDownloading))
|
LibraryListItem.BookItem(bookWithInactiveLanguage, CanWrite4GbFile)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user