forked from SPC/spc-site
16 lines
364 B
Kotlin
16 lines
364 B
Kotlin
package ru.mipt
|
|
|
|
import io.ktor.client.request.get
|
|
import io.ktor.http.HttpStatusCode
|
|
import io.ktor.server.testing.testApplication
|
|
import kotlin.test.Test
|
|
import kotlin.test.assertEquals
|
|
|
|
class ApplicationTest {
|
|
@Test
|
|
fun testRoot() = testApplication {
|
|
client.get("/").apply {
|
|
assertEquals(HttpStatusCode.OK, status)
|
|
}
|
|
}
|
|
} |