Update OfflineFirstNewsRepositoryTest.kt

Improve the unit test to perform meaningful comparisons instead of merely comparing two empty lists.
pull/1837/head
EYH GPT 8 months ago committed by GitHub
parent fafbe60e6c
commit 75e3bf0a9f

@ -89,6 +89,10 @@ class OfflineFirstNewsRepositoryTest {
@Test
fun offlineFirstNewsRepository_news_resources_stream_is_backed_by_news_resource_dao() =
testScope.runTest {
// After sync, newsResourceDao.getNewsResources().first() and
// subject.getNewsResources().first() will return non-empty lists.
subject.syncWith(synchronizer)
assertEquals(
newsResourceDao.getNewsResources()
.first()

Loading…
Cancel
Save