From 12e9017da5b274d77226ba476ed40ad09e588298 Mon Sep 17 00:00:00 2001 From: sergeigrishchenko Date: Tue, 7 Jan 2025 19:34:26 +0200 Subject: [PATCH] Node. Add test for unions with `JsRawValue` --- .../jsTest/kotlin/node/crypto/LiteralUnionTest.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 kotlin-node/src/jsTest/kotlin/node/crypto/LiteralUnionTest.kt diff --git a/kotlin-node/src/jsTest/kotlin/node/crypto/LiteralUnionTest.kt b/kotlin-node/src/jsTest/kotlin/node/crypto/LiteralUnionTest.kt new file mode 100644 index 0000000000000..16da7ca55fcfb --- /dev/null +++ b/kotlin-node/src/jsTest/kotlin/node/crypto/LiteralUnionTest.kt @@ -0,0 +1,14 @@ +package node.crypto + +import kotlin.test.Test +import kotlin.test.assertEquals + +class LiteralUnionTest { + @Test + fun checkJsAsyncForDoesNotReject() { + val actual = GetFipsResult.`0` + val expected = 0 + + assertEquals(expected, actual) + } +}