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 83a37cc49ef..51286c6ecc6 100644 --- a/libraries/kotlin.test/js/it/src/test/kotlin/MainTest.kt +++ b/libraries/kotlin.test/js/it/src/test/kotlin/MainTest.kt @@ -1,13 +1,23 @@ import kotlin.test.* +var value = 5 + class SimpleTest { + @BeforeTest fun beforeFun() { + value *= 2 + } + + @AfterTest fun afterFun() { + value /= 2 + } + @Test fun testFoo() { - assertNotEquals(10, foo()) + assertNotEquals(value, foo()) } @Test fun testBar() { - assertEquals(10, foo()) + assertEquals(value, foo()) } @Ignore @Test fun testFooWrong() {