Skip to content

Commit

Permalink
#50 잘못 들어간 들여쓰기 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
laco-dev committed Jul 16, 2023
1 parent e89a419 commit 7e0bc7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
internal object ApiModule {

@Provides
@Singleton
fun provideOkhttpClient(): OkHttpClient = OkHttpClient.Builder().build()

@Provides
@Singleton
fun provideConverterFactory(
json: Json,
): Converter.Factory {
return json.asConverterFactory("application/json".toMediaType())
}

@Provides
@Singleton
fun provideGithubApi(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import javax.inject.Singleton
@InstallIn(SingletonComponent::class)
@Module
internal abstract class DataModule {

@Binds
abstract fun bindsContributorRepository(
repository: DefaultContributorRepository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import io.kotest.matchers.shouldBe


internal class DefaultContributorRepositoryTest : BehaviorSpec() {

private val repository: DefaultContributorRepository = DefaultContributorRepository(
githubApi = FakeGithubApi(contributors)
)

init {
Given("기여자가 존재한다") {
val expected = contributors

When("기여자를 조회한다") {
val contributors: List<ContributorEntity> = repository.getContributors(
owner = "droidknights",
Expand All @@ -31,7 +31,7 @@ internal class DefaultContributorRepositoryTest : BehaviorSpec() {
}
}
}

companion object {
private val contributors = listOf(
ContributorResponse(
Expand Down

0 comments on commit 7e0bc7c

Please sign in to comment.