Skip to content

Commit

Permalink
test: added one assert to check if sharesResult list has the correc…
Browse files Browse the repository at this point in the history
…t size (`OCShareRepositoryTest`)
  • Loading branch information
joragua committed Dec 13, 2024
1 parent b5d8349 commit ea9bb6f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class OCShareRepositoryTest {
} returns sharesLiveDataList

val sharesResult = ocShareRepository.getSharesAsLiveData(filePath, OC_ACCOUNT_NAME).getLastEmittedValue()!!
assertEquals(1, sharesResult.size)
assertEquals(OC_SHARE, sharesResult.first())

verify(exactly = 1) {
Expand Down

0 comments on commit ea9bb6f

Please sign in to comment.