feat: 테마 수정 시 입력값이 없을 경우 수정되지 않는 테스트 추가

This commit is contained in:
이상진 2025-09-04 11:47:40 +09:00
parent 43dbadba86
commit 9fdbcba85a

View File

@ -480,6 +480,26 @@ class ThemeApiTest(
} }
} }
test("입력값이 없으면 수정하지 않는다.") {
runTest(
token = loginUtil.loginAsAdmin(),
using = {
body(ThemeUpdateRequest())
},
on = {
patch(apiPath)
},
expect = {
statusCode(HttpStatus.OK.value())
}
).also {
val updatedTheme = themeRepository.findByIdOrNull(createdTheme.id)!!
updatedTheme.id shouldBe createdTheme.id
updatedTheme.updatedAt shouldBe createdTheme.updatedAt
}
}
test("테마가 없으면 실패한다.") { test("테마가 없으면 실패한다.") {
runTest( runTest(
token = token, token = token,