From 302e38dd1856da322ef4a6b6763187dd7661a622 Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Mon, 19 Feb 2024 11:56:18 +0000 Subject: [PATCH] JS: enable test after bootstrap Check that a custom Promise declaration is supported for the @AfterTest annotation functionality in the kotlin.test library This is a part of the fix for KT-63359 Merge-request: KT-MR-14333 Merged-by: Anton Bannykh --- libraries/kotlin.test/js/it/src/test/kotlin/MainTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/kotlin.test/js/it/src/test/kotlin/MainTest.kt b/libraries/kotlin.test/js/it/src/test/kotlin/MainTest.kt index c37a9ca1913..8922204a5e5 100644 --- a/libraries/kotlin.test/js/it/src/test/kotlin/MainTest.kt +++ b/libraries/kotlin.test/js/it/src/test/kotlin/MainTest.kt @@ -86,9 +86,9 @@ class AsyncTest { } @Test + @Suppress("CAST_NEVER_SUCCEEDS") fun checkCustomPromise(): CustomPromise { -// return promise(10, "afterCustom") as CustomPromise - return promise(10, "") as CustomPromise + return promise(10, "afterCustom") as CustomPromise } @Test