Make all tests use runTest coroutine wrapper

This commit is contained in:
Ugljesa Jovanovic committed 2021-02-09 14:45:45 +01:00
1 parent 8e295feb46
commit 9e46cbc7ea
19 files changed
+69 -51

No files matched your search

@@ -11,7 +11,7 @@ import kotlin.browser.window
fun main() {
val runningOnNode = jsTypeOf(window) == "undefined"
if (!runningOnNode) {
if (!runningOnNode) = runTest {
LibsodiumInitializer.initializeWithCallback {
render(document.getElementById("root")) {
app {
@@ -19,7 +19,7 @@ fun main() {
}
}
}
} else {
} else = runTest {
LibsodiumInitializer.initializeWithCallback {
val hash = Hash.sha512("123".encodeToUByteArray())
println("Hash (SHA512) of 123: ${hash.toHexString()}")