Skip to content

Commit

Permalink
refactor: fix for KtLint report
Browse files Browse the repository at this point in the history
  • Loading branch information
JuancaG05 committed Dec 11, 2024
1 parent fd7e026 commit f0076ff
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,16 +436,16 @@ class OCLocalFileDataSourceTest {
}

@Test
fun `getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow returns a Flow with an empty list when DAO returns a Flow with an empty list`()
= runTest {
every { fileDao.getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow(OC_ACCOUNT_NAME) } returns flowOf(emptyList())
fun `getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow returns a Flow with an empty list when DAO returns a Flow with an empty list`() =
runTest {
every { fileDao.getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow(OC_ACCOUNT_NAME) } returns flowOf(emptyList())

val result = ocLocalFileDataSource.getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow(OC_ACCOUNT_NAME).first()
val result = ocLocalFileDataSource.getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow(OC_ACCOUNT_NAME).first()

assertEquals(emptyList<OCFileWithSyncInfo>(), result)
assertEquals(emptyList<OCFileWithSyncInfo>(), result)

verify(exactly = 1) { fileDao.getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow(OC_ACCOUNT_NAME) }
}
verify(exactly = 1) { fileDao.getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow(OC_ACCOUNT_NAME) }
}

@Test
fun `getFilesAvailableOfflineFromAccount returns a list of OCFile`() {
Expand Down

0 comments on commit f0076ff

Please sign in to comment.