JS: added back integration test for @BeforeTest and @AfterTest annotations

The test was removed in e5cfd198c7 in order
to prevent gradle tests from crashing when running with the old compiler.
This commit is contained in:
Anton Bannykh
2017-10-13 16:35:31 +03:00
parent b5d32f420d
commit 7076fda542
@@ -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() {