generated from pricelees/issue-pr-template
feat: 테마 수정 시 입력값이 없을 경우 수정되지 않는 테스트 추가
This commit is contained in:
parent
43dbadba86
commit
9fdbcba85a
@ -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("테마가 없으면 실패한다.") {
|
||||
runTest(
|
||||
token = token,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user