Skip to content

Commit

Permalink
fix: clip repo test error
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisWooyeol committed Dec 10, 2023
1 parent 679f0ea commit c0c1b57
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.goliath.emojihub.repositories.remote
import android.graphics.Bitmap
import android.media.MediaMetadataRetriever
import android.net.Uri
import com.goliath.emojihub.data_sources.ApiErrorController
import com.goliath.emojihub.data_sources.api.ClipApi
import com.goliath.emojihub.data_sources.local.MediaDataSource
import com.goliath.emojihub.mockLogClass
Expand All @@ -12,6 +13,7 @@ import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.every
import io.mockk.mockk
import io.mockk.spyk
import io.mockk.verify
import kotlinx.coroutines.runBlocking
import org.json.JSONObject
Expand All @@ -27,7 +29,8 @@ import retrofit2.Response
class ClipRepositoryImplTest {
private val clipApi = mockk<ClipApi>()
private val mediaDataSource = mockk<MediaDataSource>()
private val clipRepositoryImpl = ClipRepositoryImpl(clipApi, mediaDataSource)
private val errorController = spyk<ApiErrorController>()
private val clipRepositoryImpl = ClipRepositoryImpl(clipApi, mediaDataSource, errorController)

private val fakeJSONMap = hashMapOf<String, Any?>(
"like" to "U+1F44D",
Expand Down

0 comments on commit c0c1b57

Please sign in to comment.