[JS IR] Fix kotlin.test framework

This commit is contained in:
Roman Artemev
2020-02-26 13:41:35 +03:00
committed by romanart
parent 293ddb5389
commit 536e380331
2 changed files with 2 additions and 2 deletions
@@ -56,7 +56,7 @@ class TestGenerator(val context: JsIrBackendContext) : FileLoweringPass {
): FunctionWithBody {
val body = JsIrBuilder.buildBlockBody(emptyList())
val function = JsIrBuilder.buildFunction("$name test fun", context.irBuiltIns.unitType, parentFunction)
val function = JsIrBuilder.buildFunction("$name test fun", context.irBuiltIns.anyNType, parentFunction)
function.body = body
val parentBody = parentFunction.body as IrBlockBody
@@ -53,7 +53,7 @@ internal fun suite(name: String, ignored: Boolean, suiteFn: () -> Unit) {
}
@JsName("test")
internal fun test(name: String, ignored: Boolean, testFn: () -> Unit) {
internal fun test(name: String, ignored: Boolean, testFn: () -> Any?) {
adapter().test(name, ignored, testFn)
}