template: cleanup

This commit is contained in:
DarkCat09 2024-06-21 15:23:46 +04:00
parent 65fbbdfbe8
commit ff4a2746f2
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
2 changed files with 4 additions and 9 deletions

View file

@ -10,9 +10,4 @@ fun Application.configureSerialization() {
install(ContentNegotiation) {
json()
}
routing {
get("/json/kotlinx-serialization") {
call.respond(mapOf("hello" to "world"))
}
}
}

View file

@ -10,9 +10,9 @@ import su.coolpeople.plugins.*
class ApplicationTest {
@Test
fun testRoot() = testApplication {
client.get("/").apply {
assertEquals(HttpStatusCode.OK, status)
assertEquals("Hello World!", bodyAsText())
}
// client.get("/").apply {
// assertEquals(HttpStatusCode.OK, status)
// assertEquals("Hello World!", bodyAsText())
// }
}
}