[Gradle, JS] Add simple files without kotlinx.html
^KT-41696 fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class TestClient {
|
||||
@Test
|
||||
fun testGreet() {
|
||||
assertEquals("world", greet())
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun main() {
|
||||
console.log("Hello, #[[${greet()}]]#")
|
||||
}
|
||||
|
||||
fun greet() = "world"
|
||||
+3
@@ -63,6 +63,9 @@ class SimpleJsClientTemplate : JsClientTemplate() {
|
||||
if (useKotlinxHtml.reference.settingValue()) {
|
||||
+(FileTemplateDescriptor("$id/client.kt.vm") asSrcOf SourcesetType.main)
|
||||
+(FileTemplateDescriptor("$id/TestClient.kt.vm", "TestClient.kt".asPath()) asSrcOf SourcesetType.test)
|
||||
} else {
|
||||
+(FileTemplateDescriptor("$id/simple.kt.vm") asSrcOf SourcesetType.main)
|
||||
+(FileTemplateDescriptor("$id/SimpleTest.kt.vm", "TestClient.kt".asPath()) asSrcOf SourcesetType.test)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user