Skip to content

Commit

Permalink
[PC-608] 회원가입 완료 Lottie 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 15, 2025
1 parent 4f68ec7 commit bc97bd8
Show file tree
Hide file tree
Showing 11 changed files with 2,531 additions and 188 deletions.
18 changes: 18 additions & 0 deletions core/data/src/test/java/com/puzzle/data/fake/FakeSseClient.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.puzzle.data.fake

import com.puzzle.network.api.sse.SseClient
import com.puzzle.network.model.profile.SseAiSummaryResponse
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow

class FakeSseClient : SseClient {
override val aiSummaryResponse: Flow<SseAiSummaryResponse> = flow { }

override suspend fun connect(): Result<Unit> {
return Result.success(Unit)
}

override suspend fun disconnect(): Result<Unit> {
return Result.success(Unit)
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.puzzle.data.repository

import com.puzzle.data.fake.FakeSseClient
import com.puzzle.data.fake.source.profile.FakeLocalProfileDataSource
import com.puzzle.data.fake.source.profile.FakeProfileDataSource
import com.puzzle.data.fake.source.token.FakeLocalTokenDataSource
Expand All @@ -9,6 +10,7 @@ import com.puzzle.domain.model.profile.Contact
import com.puzzle.domain.model.profile.ContactType
import com.puzzle.domain.model.profile.MyValuePick
import com.puzzle.domain.model.profile.MyValueTalk
import com.puzzle.network.api.sse.SseClient
import com.puzzle.network.model.profile.ValueTalkResponse
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.test.runTest
Expand All @@ -24,6 +26,7 @@ class ProfileRepositoryImplTest {
private lateinit var localUserDataSource: FakeLocalUserDataSource
private lateinit var profileRepository: ProfileRepositoryImpl
private lateinit var imageResizer: SpyImageResizer
private lateinit var sseClient: SseClient

@BeforeEach
fun setUp() {
Expand All @@ -32,12 +35,14 @@ class ProfileRepositoryImplTest {
localTokenDataSource = FakeLocalTokenDataSource()
localUserDataSource = FakeLocalUserDataSource()
imageResizer = SpyImageResizer()
sseClient = FakeSseClient()
profileRepository = ProfileRepositoryImpl(
profileDataSource = profileDataSource,
localProfileDataSource = localProfileDataSource,
localUserDataSource = localUserDataSource,
localTokenDataSource = localTokenDataSource,
imageResizer = imageResizer,
sseClient = sseClient,
)
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
141 changes: 0 additions & 141 deletions core/designsystem/src/main/res/drawable/ic_profile_generate.xml

This file was deleted.

Loading

0 comments on commit bc97bd8

Please sign in to comment.