Skip to content

Commit

Permalink
Adapt tests to new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed Dec 20, 2022
1 parent f56896c commit 5e553f0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class OCRemoteShareDataSourceTest {
@Test
fun deleteShare() {
val removeRemoteShareOperationResult = createRemoteOperationResultMock(
ShareResponse(arrayListOf()),
Unit,
isSuccess = true
)

Expand All @@ -397,7 +397,7 @@ class OCRemoteShareDataSourceTest {

private fun deleteShareOperationWithError(resultCode: RemoteOperationResult.ResultCode? = null) {
val removeRemoteShareOperationResult = createRemoteOperationResultMock(
ShareResponse(arrayListOf()),
Unit,
false,
null,
resultCode
Expand All @@ -409,4 +409,4 @@ class OCRemoteShareDataSourceTest {

ocRemoteShareDataSource.deleteShare("1")
}
}
}

0 comments on commit 5e553f0

Please sign in to comment.