Skip to content

Commit

Permalink
test(UserServiceTest): import missing group config classes to fix com…
Browse files Browse the repository at this point in the history
…pilation errors

fix(UserServiceTest): correct image total size in DTO to reflect bytes rather than kilobytes
  • Loading branch information
ShiinaKin committed Oct 14, 2024
1 parent 65e7410 commit 1a6c704
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import io.sakurasou.model.dto.UserSelfUpdateDTO
import io.sakurasou.model.entity.Album
import io.sakurasou.model.entity.Group
import io.sakurasou.model.entity.User
import io.sakurasou.model.group.GroupConfig
import io.sakurasou.model.group.GroupStrategyConfig
import io.sakurasou.model.setting.SystemSetting
import io.sakurasou.service.setting.SettingService
import kotlinx.coroutines.runBlocking
Expand Down Expand Up @@ -521,9 +523,10 @@ class UserServiceTest {
id = 2,
name = "UserGroup",
description = null,
strategyId = 1
strategyId = 1,
config = GroupConfig(GroupStrategyConfig())
)
val imageCountAndTotalSizeDTO = ImageCountAndTotalSizeDTO(10, 2048.0)
val imageCountAndTotalSizeDTO = ImageCountAndTotalSizeDTO(10, 204800)

val exceptedUserVO = UserVO(
id = userId,
Expand Down

0 comments on commit 1a6c704

Please sign in to comment.