template: cleanup
This commit is contained in:
parent
65fbbdfbe8
commit
ff4a2746f2
2 changed files with 4 additions and 9 deletions
|
@ -10,9 +10,4 @@ fun Application.configureSerialization() {
|
||||||
install(ContentNegotiation) {
|
install(ContentNegotiation) {
|
||||||
json()
|
json()
|
||||||
}
|
}
|
||||||
routing {
|
|
||||||
get("/json/kotlinx-serialization") {
|
|
||||||
call.respond(mapOf("hello" to "world"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,9 @@ import su.coolpeople.plugins.*
|
||||||
class ApplicationTest {
|
class ApplicationTest {
|
||||||
@Test
|
@Test
|
||||||
fun testRoot() = testApplication {
|
fun testRoot() = testApplication {
|
||||||
client.get("/").apply {
|
// client.get("/").apply {
|
||||||
assertEquals(HttpStatusCode.OK, status)
|
// assertEquals(HttpStatusCode.OK, status)
|
||||||
assertEquals("Hello World!", bodyAsText())
|
// assertEquals("Hello World!", bodyAsText())
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue