compile the assertions and a test case to QUnit on JS and got a working example to run the unit test case - yay!
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
package testPackage
|
||||
|
||||
import org.junit.Test as test
|
||||
import kotlin.test.*
|
||||
|
||||
class SimpleTest {
|
||||
|
||||
public fun testFoo() {
|
||||
val name = "world"
|
||||
val message = "hello $name!"
|
||||
assertEquals("hello world", message)
|
||||
}
|
||||
|
||||
test fun cheese() {
|
||||
val name = "world"
|
||||
val message = "bye $name!"
|
||||
assertEquals("bye world!", message)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user