jsTest.com.bkahlert.kommons.debug.InspectJsKtTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kommons-debug Show documentation
Show all versions of kommons-debug Show documentation
Kommons Debug is a Kotlin Multiplatform Library for print debugging.
@file:Suppress("DEPRECATION")
package com.bkahlert.kommons.debug
import com.bkahlert.kommons.test.testAll
import io.kotest.matchers.should
import io.kotest.matchers.string.shouldMatch
import kotlin.test.Test
class InspectJsKtTest {
@Test fun inspect_js() = testAll {
buildString {
"subject".inspectJs(out = this::append)
} should {
it shouldMatch "subject".toRegex()
}
}
}