Skip to content

Commit

Permalink
Update tests with new function name
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed Sep 29, 2022
1 parent 0bb73a2 commit 3a6dcb4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class OCFileRepositoryTest {

verify(exactly = 1) {
remoteFileDataSource.createFolder(any(), false, false)
localFileDataSource.saveFilesInFolder(any(), OC_FOLDER)
localFileDataSource.saveFilesInFolderAndReturnThem(any(), OC_FOLDER)
}
}

Expand All @@ -80,7 +80,7 @@ class OCFileRepositoryTest {
remoteFileDataSource.createFolder(any(), false, false)
}
verify(exactly = 0) {
localFileDataSource.saveFilesInFolder(any(), OC_FOLDER)
localFileDataSource.saveFilesInFolderAndReturnThem(any(), OC_FOLDER)
}
}

Expand Down Expand Up @@ -203,7 +203,7 @@ class OCFileRepositoryTest {

verify(exactly = 1) {
remoteFileDataSource.refreshFolder(folderToFetch.remotePath)
localFileDataSource.saveFilesInFolder(
localFileDataSource.saveFilesInFolderAndReturnThem(
listOfFiles = listOfFilesRetrieved.drop(1),
folder = listOfFilesRetrieved.first()
)
Expand All @@ -222,7 +222,7 @@ class OCFileRepositoryTest {
remoteFileDataSource.refreshFolder(OC_FOLDER.remotePath)
}
verify(exactly = 0) {
localFileDataSource.saveFilesInFolder(any(), any())
localFileDataSource.saveFilesInFolderAndReturnThem(any(), any())
}
}

Expand Down

0 comments on commit 3a6dcb4

Please sign in to comment.