aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2021-12-17 14:28:53 +0300
committerGitHub <noreply@github.com>2021-12-17 14:28:53 +0300
commit17cd417c47cb38ea30a777576285349a1821fdce (patch)
treee28f748546e51c6e436428115b492f11e4b502da /integration-tests/gradle
parent702c102b934208792a380d8a984052801f9230a1 (diff)
downloaddokka-17cd417c47cb38ea30a777576285349a1821fdce.tar.gz
dokka-17cd417c47cb38ea30a777576285349a1821fdce.tar.bz2
dokka-17cd417c47cb38ea30a777576285349a1821fdce.zip
Fix setup js deps (#2258)
* Add checker of KLIB resolving * Fix setup of JS deps in `AnalysisEnvironment` * Update JS integration test
Diffstat (limited to 'integration-tests/gradle')
-rw-r--r--integration-tests/gradle/projects/it-js-ir-0/build.gradle.kts1
-rw-r--r--integration-tests/gradle/projects/it-js-ir-0/src/main/kotlin/RootPackageClass.kt8
2 files changed, 8 insertions, 1 deletions
diff --git a/integration-tests/gradle/projects/it-js-ir-0/build.gradle.kts b/integration-tests/gradle/projects/it-js-ir-0/build.gradle.kts
index 39c58305..6f949766 100644
--- a/integration-tests/gradle/projects/it-js-ir-0/build.gradle.kts
+++ b/integration-tests/gradle/projects/it-js-ir-0/build.gradle.kts
@@ -14,5 +14,6 @@ kotlin {
dependencies {
implementation(kotlin("stdlib"))
+ implementation(npm("is-sorted", "1.0.5"))
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-router-dom:${properties["dokka_it_react_kotlin_version"]}")
} \ No newline at end of file
diff --git a/integration-tests/gradle/projects/it-js-ir-0/src/main/kotlin/RootPackageClass.kt b/integration-tests/gradle/projects/it-js-ir-0/src/main/kotlin/RootPackageClass.kt
index 222ecb7e..b93e180e 100644
--- a/integration-tests/gradle/projects/it-js-ir-0/src/main/kotlin/RootPackageClass.kt
+++ b/integration-tests/gradle/projects/it-js-ir-0/src/main/kotlin/RootPackageClass.kt
@@ -12,4 +12,10 @@ class RootPackageClass {
val description = "I do live in the root package!"
}
-fun RComponent<*, *>.params() = URLSearchParams() \ No newline at end of file
+fun RComponent<*, *>.params() = URLSearchParams()
+
+fun test(list: MutableList<Int>) = "list"
+
+@JsModule("is-sorted")
+@JsNonModule
+external fun <T> sorted(a: Array<T>): Boolean \ No newline at end of file