Update OfflineFirstTopicsRepositoryTest.kt

Improve the unit test to do meaning comparisons instead of just comparing two empty lists.
pull/1798/head
Pirate Cat 9 months ago committed by GitHub
parent b89e331ac2
commit b651b2ed4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -67,6 +67,10 @@ class OfflineFirstTopicsRepositoryTest {
@Test
fun offlineFirstTopicsRepository_topics_stream_is_backed_by_topics_dao() =
testScope.runTest {
// After sync, topicDao.getTopicEntities().first() and subject.getTopics().first()
// will return non-empty lists.
subject.syncWith(synchronizer)
assertEquals(
topicDao.getTopicEntities()
.first()

Loading…
Cancel
Save