Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
feat: enable js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
severinstampler committed Nov 30, 2023
1 parent 49fefe6 commit 9ad9e65
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/jsTest/kotlin/id/walt/mdoc/JSTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.encodeToHexString
import kotlin.test.Test

/*class JSTest {
class JSTest {

@OptIn(DelicateCoroutinesApi::class, ExperimentalJsExport::class)
//@Test
/*fun test1() = GlobalScope.promise {
@Test
fun test1() = GlobalScope.promise {
val key: dynamic = object {}
key["d"] = Hex.decode("6c1382765aec5358f117733d281c1c7bdc39884d04a45a1e6c67c858bc206c19")
val cryptoProvider = SimpleAsyncCOSECryptoProvider(listOf(
COSECryptoProviderKeyInfo("ISSUER_KEY_ID", "ES256", key)
))
testSigningMdl(cryptoProvider)
}*/
}

//@OptIn(ExperimentalSerializationApi::class)
/*suspend fun testSigningMdl(cryptoProvider: SimpleAsyncCOSECryptoProvider) {
@OptIn(ExperimentalSerializationApi::class)
suspend fun testSigningMdl(cryptoProvider: SimpleAsyncCOSECryptoProvider) {
// ISO-IEC_18013-5:2021
// Personal identification — ISO-compliant driving licence
// Part 5: Mobile driving licence (mDL) application
Expand All @@ -56,5 +56,5 @@ import kotlin.test.Test
)
println("SIGNED MDOC (mDL):")
println(Cbor.encodeToHexString(mdoc))
}*/
}*/
}
}

0 comments on commit 9ad9e65

Please sign in to comment.