• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlinx.coroutines.test
6 import kotlinx.coroutines.*
7 import kotlin.js.*
8 
9 @Suppress("ACTUAL_WITHOUT_EXPECT", "ACTUAL_TYPE_ALIAS_TO_CLASS_WITH_DECLARATION_SITE_VARIANCE")
10 public actual typealias TestResult = Promise<Unit>
11 
createTestResultnull12 internal actual fun createTestResult(testProcedure: suspend CoroutineScope.() -> Unit): TestResult =
13     GlobalScope.promise {
14         testProcedure()
15     }
16