[Wasm] Add compiler support for the kotlin.test library
This commit is contained in:
committed by
TeamCityServer
parent
7943298240
commit
bede039c08
@@ -192,6 +192,8 @@ abstract class BasicWasmBoxTest(
|
||||
|
||||
const ${sanitizeName(config.moduleId)} = wasmInstance.exports;
|
||||
|
||||
wasmInstance.exports.startUnitTests?.();
|
||||
|
||||
const actualResult = importStringFromWasm(wasmInstance.exports.$testFunction());
|
||||
if (actualResult !== "OK")
|
||||
throw `Wrong box result '${'$'}{actualResult}'; Expected "OK"`;
|
||||
|
||||
Reference in New Issue
Block a user