Skip to content

Commit

Permalink
Rename SimpleJsTest to SimpleWasmJsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
AzimMuradov committed Jan 14, 2024
1 parent 646ff0c commit 71c82f2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import kotlin.test.*

private val logger = KotlinLogging.logger("SimpleWasmJsTest")

class SimpleJsTest {
class SimpleWasmJsTest {
private lateinit var appender: SimpleAppender

@BeforeTest
Expand All @@ -20,15 +20,15 @@ class SimpleJsTest {
}

@Test
fun simpleJsTest() {
fun simpleWasmJsTest() {
assertEquals("SimpleWasmJsTest", logger.name)
logger.info { "info msg" }
assertEquals("INFO: [SimpleWasmJsTest] info msg", appender.lastMessage)
assertEquals("info", appender.lastLevel)
}

@Test
fun offLevelJsTest() {
fun offLevelWasmJsTest() {
KotlinLoggingConfiguration.logLevel = Level.OFF
assertTrue(logger.isLoggingOff())
logger.error { "error msg" }
Expand Down

0 comments on commit 71c82f2

Please sign in to comment.