Skip to content

Commit

Permalink
chore: fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiin Kim authored and Jiin Kim committed Jan 23, 2025
1 parent d2f8481 commit 6e320d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/kotlin/com/kogo/content/service/PostServiceTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ class PostServiceTest {

every { fileService.uploadImage(testImage) } returns testAttachment
every { postRepository.save(any()) } answers { firstArg() }
every {
pushNotificationService.createPushNotification(
any(),
any()
)
} returns mockk()

val result = postService.create(group, user, postDto)

Expand All @@ -339,6 +345,7 @@ class PostServiceTest {
verify {
fileService.uploadImage(testImage)
postRepository.save(any())
pushNotificationService.createPushNotification(any(), any())
}
}

Expand Down

0 comments on commit 6e320d9

Please sign in to comment.