mirror of https://github.com/usbharu/Hideout.git
test: 不要なテストを削除
This commit is contained in:
parent
9f2890b042
commit
9487739cab
|
@ -58,7 +58,6 @@ fun Application.module() {
|
|||
configureMonitoring()
|
||||
configureSerialization()
|
||||
configureSockets()
|
||||
configureRouting()
|
||||
val activityPubUserService by inject<ActivityPubUserService>()
|
||||
user(userService,activityPubUserService)
|
||||
login()
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
package dev.usbharu
|
||||
|
||||
import dev.usbharu.hideout.plugins.configureRouting
|
||||
import io.ktor.client.request.*
|
||||
import io.ktor.client.statement.*
|
||||
import io.ktor.http.*
|
||||
import io.ktor.server.testing.*
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class ApplicationTest {
|
||||
@Test
|
||||
fun testRoot() = testApplication {
|
||||
application {
|
||||
configureRouting()
|
||||
}
|
||||
client.get("/").apply {
|
||||
assertEquals(HttpStatusCode.OK, status)
|
||||
assertEquals("Hello World!", bodyAsText())
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue