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 1
1
package dev.suresh.wasm
2
2
3
3
import 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")!!) }
6
7
7
8
fun Routing.wasm () {
8
9
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.*
18
18
import io.ktor.server.response.*
19
19
import io.ktor.server.routing.*
20
20
import io.ktor.server.testing.*
21
- import kotlin.test.Test
22
- import kotlin.test.assertEquals
23
- import kotlin.test.assertTrue
24
21
import kotlinx.coroutines.slf4j.MDCContext
25
22
import kotlinx.coroutines.test.runTest
26
23
import kotlinx.coroutines.withContext
@@ -37,6 +34,7 @@ import org.testcontainers.images.builder.Transferable
37
34
import org.testcontainers.junit.jupiter.Container
38
35
import org.testcontainers.junit.jupiter.Testcontainers
39
36
import org.testcontainers.utility.DockerImageName
37
+ import kotlin.test.*
40
38
41
39
@Testcontainers
42
40
@EnabledIfSystemProperty(named = " ktorTest" , matches = " true" )
@@ -135,10 +133,10 @@ class AppTests {
135
133
" $certDir /gen-certs.sh" )
136
134
.withCopyToContainer(
137
135
Transferable .of(
138
- """
136
+ $$ """
139
137
#!/bin/sh
140
138
set -e
141
- echo "Entrypoint args: "\ ${ ' $ ' } @""
139
+ echo "Entrypoint args: "$ @""
142
140
apk add nginx
143
141
echo "<h1>Hello world!</h1>" > $docRoot /index.html;
144
142
cat <<EOF > /etc/nginx/http.d/default.conf
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ kotlin {
29
29
implementation(libs.kobweb.core)
30
30
implementation(libs.kobweb.silk)
31
31
implementation(libs.kobwebx.markdown)
32
+ implementation(libs.kobwebx.serialization)
32
33
// implementation(libs.silk.icons.fa)
33
34
}
34
35
}
You can’t perform that action at this time.
0 commit comments