File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11package dev.suresh.wasm
22
33import io.ktor.server.response.respondText
4- import io.ktor.server.routing.Routing
5- import io.ktor.server.routing.get
4+ import io.ktor.server.routing.*
5+
6+ // val factModule by lazy { Parser.parse(::class.java.getResourceAsStream("/fact.wasm")!!) }
67
78fun Routing.wasm () {
89 get(" /wasm" ) { call.respondText(" WASM: WebAssembly" ) }
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ import io.ktor.server.request.*
1818import io.ktor.server.response.*
1919import io.ktor.server.routing.*
2020import io.ktor.server.testing.*
21- import kotlin.test.Test
22- import kotlin.test.assertEquals
23- import kotlin.test.assertTrue
2421import kotlinx.coroutines.slf4j.MDCContext
2522import kotlinx.coroutines.test.runTest
2623import kotlinx.coroutines.withContext
@@ -37,6 +34,7 @@ import org.testcontainers.images.builder.Transferable
3734import org.testcontainers.junit.jupiter.Container
3835import org.testcontainers.junit.jupiter.Testcontainers
3936import org.testcontainers.utility.DockerImageName
37+ import kotlin.test.*
4038
4139@Testcontainers
4240@EnabledIfSystemProperty(named = " ktorTest" , matches = " true" )
@@ -135,10 +133,10 @@ class AppTests {
135133 " $certDir /gen-certs.sh" )
136134 .withCopyToContainer(
137135 Transferable .of(
138- """
136+ $$ """
139137 #!/bin/sh
140138 set -e
141- echo "Entrypoint args: "\ ${ ' $ ' } @""
139+ echo "Entrypoint args: "$ @""
142140 apk add nginx
143141 echo "<h1>Hello world!</h1>" > $docRoot /index.html;
144142 cat <<EOF > /etc/nginx/http.d/default.conf
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ kotlin {
2929 implementation(libs.kobweb.core)
3030 implementation(libs.kobweb.silk)
3131 implementation(libs.kobwebx.markdown)
32+ implementation(libs.kobwebx.serialization)
3233 // implementation(libs.silk.icons.fa)
3334 }
3435 }
You can’t perform that action at this time.
0 commit comments