This commit is contained in:
parent
ac4c4b9441
commit
4b63afe62a
@ -299,9 +299,9 @@ class RepositoryTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
assertSame(true, success)
|
assertSame(true, success)
|
||||||
assertSame(NUMBER_ARTICLES, repository.badgeAll)
|
assertEquals(NUMBER_ARTICLES, repository.badgeAll.value)
|
||||||
assertSame(NUMBER_UNREAD, repository.badgeUnread)
|
assertEquals(NUMBER_UNREAD, repository.badgeUnread.value)
|
||||||
assertSame(NUMBER_STARRED, repository.badgeStarred)
|
assertEquals(NUMBER_STARRED, repository.badgeStarred.value)
|
||||||
coVerify(atLeast = 1) { api.stats() }
|
coVerify(atLeast = 1) { api.stats() }
|
||||||
verify(exactly = 0) { db.itemsQueries.items().executeAsList() }
|
verify(exactly = 0) { db.itemsQueries.items().executeAsList() }
|
||||||
}
|
}
|
||||||
@ -318,9 +318,9 @@ class RepositoryTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
assertSame(false, success)
|
assertSame(false, success)
|
||||||
assertSame(0, repository.badgeAll)
|
assertSame(0, repository.badgeAll.value)
|
||||||
assertSame(0, repository.badgeUnread)
|
assertSame(0, repository.badgeUnread.value)
|
||||||
assertSame(0, repository.badgeStarred)
|
assertSame(0, repository.badgeStarred.value)
|
||||||
coVerify(atLeast = 1) { api.stats() }
|
coVerify(atLeast = 1) { api.stats() }
|
||||||
verify(exactly = 0) { db.itemsQueries.items().executeAsList() }
|
verify(exactly = 0) { db.itemsQueries.items().executeAsList() }
|
||||||
}
|
}
|
||||||
@ -338,9 +338,9 @@ class RepositoryTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
assertTrue(success)
|
assertTrue(success)
|
||||||
assertSame(1, repository.badgeAll)
|
assertEquals(1, repository.badgeAll.value)
|
||||||
assertSame(1, repository.badgeUnread)
|
assertEquals(1, repository.badgeUnread.value)
|
||||||
assertSame(1, repository.badgeStarred)
|
assertEquals(1, repository.badgeStarred.value)
|
||||||
coVerify(exactly = 0) { api.stats() }
|
coVerify(exactly = 0) { api.stats() }
|
||||||
verify(atLeast = 1) { db.itemsQueries.items().executeAsList() }
|
verify(atLeast = 1) { db.itemsQueries.items().executeAsList() }
|
||||||
}
|
}
|
||||||
@ -358,9 +358,9 @@ class RepositoryTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
assertFalse(success)
|
assertFalse(success)
|
||||||
assertSame(0, repository.badgeAll)
|
assertSame(0, repository.badgeAll.value)
|
||||||
assertSame(0, repository.badgeUnread)
|
assertSame(0, repository.badgeUnread.value)
|
||||||
assertSame(0, repository.badgeStarred)
|
assertSame(0, repository.badgeStarred.value)
|
||||||
coVerify(exactly = 0) { api.stats() }
|
coVerify(exactly = 0) { api.stats() }
|
||||||
verify(exactly = 0) { db.itemsQueries.items().executeAsList() }
|
verify(exactly = 0) { db.itemsQueries.items().executeAsList() }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user