title: How to unit-test Kotlin-JS code with coroutines?
body: <p>I've created a multi-platform Kotlin project (JVM &amp; JS), declared an expected class and implemented it:</p>
  
  <pre><code>// Common module:
  expect class Request(/* ... */) {
      suspend fun loadText(): String
  }
  
  // JS implementation:
  actual class Request actual constructor(/* ... */) {
      actual suspend fun loadText(): String = suspendCoroutine { continuation -&gt;
          // ...
      }
  }
  </code></pre>
  
  <p>Now I'm trying to make a unit test using <code>kotlin.test</code>, and for the JVM platform I simply use <code>runBlocking</code> like this:</p>
  
  <pre><code>@Test
  fun sampleTest() {
      val req = Request(/* ... */)
      runBlocking { assertEquals( /* ... */ , req.loadText()) }
  }
  </code></pre>
  
  <p>How can I reproduce similar functionality on the JS platform, if there is no <code>runBlocking</code>?</p>