From 17cd417c47cb38ea30a777576285349a1821fdce Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Fri, 17 Dec 2021 14:28:53 +0300 Subject: Fix setup js deps (#2258) * Add checker of KLIB resolving * Fix setup of JS deps in `AnalysisEnvironment` * Update JS integration test --- integration-tests/gradle/projects/it-js-ir-0/build.gradle.kts | 1 + .../projects/it-js-ir-0/src/main/kotlin/RootPackageClass.kt | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'integration-tests/gradle') 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) = "list" + +@JsModule("is-sorted") +@JsNonModule +external fun sorted(a: Array): Boolean \ No newline at end of file -- cgit