Init empty project

This commit is contained in:
2024-02-27 13:07:48 +01:00
commit e39c38ced5
17 changed files with 635 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package io.github.flecomte
import io.github.flecomte.plugins.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import io.ktor.server.testing.*
import kotlin.test.*
class ApplicationTest {
@Test
fun testRoot() = testApplication {
application {
configureRouting()
}
client.get("/").apply {
assertEquals(HttpStatusCode.OK, status)
assertEquals("Hello World!", bodyAsText())
}
}
}