Skip to content

Commit 81a6649

Browse files
committed
모임 대표 사진 webp 전환 테스트 코드 추가
1 parent b34df38 commit 81a6649

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/kotlin/com/taskforce/superinvention/app/domain/club/ClubService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class ClubService(
162162
val imgFolder = "club/${club.seq}"
163163
val movedFile: S3Path = awsS3Mo.moveFile(request.img!!, "$imgFolder/${request.img!!.fileName}")
164164
webpConvertService.convertToWebP(movedFile)
165-
165+
166166
club.mainImageUrl = movedFile.absolutePath
167167
club.mainImagePath = movedFile.filePath
168168
club.mainImageName = movedFile.fileName

src/test/kotlin/com/taskforce/superinvention/app/domain/club/ClubServiceTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ internal class ClubServiceTest: MockTest() {
186186
fileName = "file.jpg",
187187
)
188188

189+
every { webpConvertService.convertToWebP(any()) } returns Unit
190+
189191
// when
190192
clubService.addClub(superUser, requestBody)
191193

0 commit comments

Comments
 (0)