Исправить форматирование теста рекомендаций
Разбиты длинные строки в RecommendationSmokeTest, из-за которых CI падал на ktlint и detekt.
This commit is contained in:
@@ -340,7 +340,13 @@ class RecommendationSmokeTest {
|
|||||||
mockMvc
|
mockMvc
|
||||||
.post("/api/users") {
|
.post("/api/users") {
|
||||||
contentType = MediaType.APPLICATION_JSON
|
contentType = MediaType.APPLICATION_JSON
|
||||||
content = objectMapper.writeValueAsString(CreateUserRequest(name = "Harry", email = "harry@example.com"))
|
content =
|
||||||
|
objectMapper.writeValueAsString(
|
||||||
|
CreateUserRequest(
|
||||||
|
name = "Harry",
|
||||||
|
email = "harry@example.com",
|
||||||
|
),
|
||||||
|
)
|
||||||
}.andExpect {
|
}.andExpect {
|
||||||
status { isCreated() }
|
status { isCreated() }
|
||||||
}
|
}
|
||||||
@@ -365,7 +371,8 @@ class RecommendationSmokeTest {
|
|||||||
val likedSecondFilmId =
|
val likedSecondFilmId =
|
||||||
createFilm(
|
createFilm(
|
||||||
title = "Chamber of Magic",
|
title = "Chamber of Magic",
|
||||||
description = "Young friends return to a wizard school and uncover a secret chamber full of magical danger.",
|
description =
|
||||||
|
"Young friends return to a wizard school and uncover a secret chamber full of magical danger.",
|
||||||
releaseYear = 2002,
|
releaseYear = 2002,
|
||||||
genres = listOf("Fantasy", "Adventure", "Family"),
|
genres = listOf("Fantasy", "Adventure", "Family"),
|
||||||
imdbRating = 8.1,
|
imdbRating = 8.1,
|
||||||
|
|||||||
Reference in New Issue
Block a user