test
Here is official Kotlin site
OK
aaa", wrapper.innerHTML) } - @test fun testComment() { + @Test fun testComment() { val wrapper = wrapper() wrapper.append.div { comment("commented") diff --git a/src/jvmTest/kotlin/custom-tag.kt b/src/jvmTest/kotlin/custom-tag.kt index 57b91c23..ff1b980f 100644 --- a/src/jvmTest/kotlin/custom-tag.kt +++ b/src/jvmTest/kotlin/custom-tag.kt @@ -2,7 +2,6 @@ package kotlinx.html.tests import kotlinx.html.* import kotlinx.html.stream.* -import org.junit.Test import kotlin.test.* class CustomTagTest { diff --git a/src/jvmTest/kotlin/dom-trees.kt b/src/jvmTest/kotlin/dom-trees.kt index 58f54f58..a44de504 100644 --- a/src/jvmTest/kotlin/dom-trees.kt +++ b/src/jvmTest/kotlin/dom-trees.kt @@ -4,10 +4,9 @@ import kotlinx.html.* import kotlinx.html.consumers.* import kotlinx.html.dom.* import kotlin.test.* -import org.junit.Test as test class TestDOMTrees { - @test fun `able to create simple tree`() { + @Test fun `able to create simple tree`() { val tree = createHTMLDocument().div { id = "test-node" +"content" @@ -16,7 +15,7 @@ class TestDOMTrees { assertEquals("div", tree.getElementById("test-node")?.tagName?.lowercase()) } - @test fun `able to create complex tree and render it with pretty print`() { + @Test fun `able to create complex tree and render it with pretty print`() { val tree = createHTMLDocument().html { body { h1 { @@ -43,7 +42,7 @@ class TestDOMTrees {