Add @Target's to kotlin.test annotations
diff --git a/libraries/kotlin.test/annotations-common/src/main/kotlin/kotlin.test/Annotations.kt b/libraries/kotlin.test/annotations-common/src/main/kotlin/kotlin.test/Annotations.kt
index 71de4bc..a896a7f 100644
--- a/libraries/kotlin.test/annotations-common/src/main/kotlin/kotlin.test/Annotations.kt
+++ b/libraries/kotlin.test/annotations-common/src/main/kotlin/kotlin.test/Annotations.kt
@@ -19,19 +19,23 @@
/**
* Marks a function as a test.
*/
+@Target(AnnotationTarget.FUNCTION)
public expect annotation class Test()
/**
* Marks a test or a suite as ignored.
*/
+@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
public expect annotation class Ignore()
/**
* Marks a function to be invoked before each test.
*/
+@Target(AnnotationTarget.FUNCTION)
public expect annotation class BeforeTest()
/**
* Marks a function to be invoked after each test.
*/
+@Target(AnnotationTarget.FUNCTION)
public expect annotation class AfterTest()
diff --git a/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/Annotations.kt b/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/Annotations.kt
index 80b6d1a..95305e8 100644
--- a/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/Annotations.kt
+++ b/libraries/kotlin.test/js/src/main/kotlin/kotlin/test/Annotations.kt
@@ -19,19 +19,23 @@
/**
* Marks a function as a test.
*/
+@Target(AnnotationTarget.FUNCTION)
public annotation class Test
/**
- * Marks a test or a suite as ignored/pending.
+ * Marks a test or a suite as ignored.
*/
+@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
public annotation class Ignore
/**
* Marks a function to be invoked before each test.
*/
+@Target(AnnotationTarget.FUNCTION)
public annotation class BeforeTest
/**
* Marks a function to be invoked after each test.
*/
-public annotation class AfterTest
\ No newline at end of file
+@Target(AnnotationTarget.FUNCTION)
+public annotation class AfterTest