Skip to content

Commit

Permalink
test: added one assert to check if 'shareResult' list has the correct…
Browse files Browse the repository at this point in the history
… size (`OCShareRepository`)
  • Loading branch information
joragua committed Dec 13, 2024
1 parent da8b217 commit a0ea76f
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 a0ea76f

Please sign in to comment.