Skip to content

Commit

Permalink
refactor: modified one assert from OCLocalUserDataSourceTest
Browse files Browse the repository at this point in the history
  • Loading branch information
joragua committed Jan 8, 2025
1 parent b5c4ee1 commit a9576a3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
package com.owncloud.android.data.user.datasources.implementation

import com.owncloud.android.data.user.datasources.implementation.OCLocalUserDataSource.Companion.toEntity
import com.owncloud.android.data.user.datasources.implementation.OCLocalUserDataSource.Companion.toModel
import com.owncloud.android.data.user.db.UserDao
import com.owncloud.android.testutil.OC_ACCOUNT_NAME
import com.owncloud.android.testutil.OC_USER_QUOTA
Expand Down Expand Up @@ -92,7 +91,7 @@ class OCLocalUserDataSourceTest {
} returns flowOf(userQuotaEntity)

val userQuota = ocLocalUserDataSource.getQuotaForAccountAsFlow(OC_ACCOUNT_NAME).first()
assertEquals(userQuotaEntity.toModel(), userQuota)
assertEquals(OC_USER_QUOTA, userQuota)

verify(exactly = 1) {
ocUserQuotaDao.getQuotaForAccountAsFlow(OC_ACCOUNT_NAME)
Expand Down

0 comments on commit a9576a3

Please sign in to comment.