Skip to content

Commit

Permalink
Fix tests in JS target and downgraded Kotlin (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls authored Sep 4, 2023
1 parent c5b4feb commit 905be80
Show file tree
Hide file tree
Showing 6 changed files with 2,226 additions and 8 deletions.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ kotlin {
useCommonJs()
}
)
// store yarn.lock in the root directory
rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension> {
lockFileDirectory = rootProject.projectDir
}
sourceSets {
val commonMain by getting {
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
kotlin = "1.9.0"
kotlin = "1.8.20"
kotlinx-serialization = "1.5.1"
kotlinx-datetime = "0.4.0"
jackson = "2.15.2"
Expand Down
2 changes: 1 addition & 1 deletion src/commonTest/kotlin/com/saveourtool/osv4k/CosvTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import kotlin.test.Test

class CosvTest {
@Test
fun `COSV with severity`() {
fun cosvWithSeverity() {
// language=JSON
doEncodeDecodeAndCompare(
"""
Expand Down
8 changes: 6 additions & 2 deletions src/commonTest/kotlin/com/saveourtool/osv4k/DebianTest.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@file:Suppress("LONG_LINE", "TOO_LONG_FUNCTION")
@file:Suppress(
"LONG_LINE",
"TOO_LONG_FUNCTION",
"FUNCTION_NAME_INCORRECT_CASE",
)

package com.saveourtool.osv4k

Expand All @@ -7,7 +11,7 @@ import kotlin.test.Test

class DebianTest {
@Test
fun `DSA-3029-1`() {
fun dsa_3029_1() {
// language=JSON
doEncodeDecodeAndCompare(
"""
Expand Down
12 changes: 8 additions & 4 deletions src/commonTest/kotlin/com/saveourtool/osv4k/GoTest.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@file:Suppress("LONG_LINE", "TOO_LONG_FUNCTION")
@file:Suppress(
"LONG_LINE",
"TOO_LONG_FUNCTION",
"FUNCTION_NAME_INCORRECT_CASE",
)

package com.saveourtool.osv4k

Expand All @@ -7,7 +11,7 @@ import kotlin.test.Test

class GoTest {
@Test
fun `GO-2020-0015`() {
fun go_2020_0015() {
// language=JSON
doEncodeDecodeAndCompare(
"""
Expand Down Expand Up @@ -95,7 +99,7 @@ class GoTest {
}

@Test
fun `GO-2022-0189`() {
fun go_2022_0189() {
// language=JSON
doEncodeDecodeAndCompare(
"""
Expand Down Expand Up @@ -178,7 +182,7 @@ class GoTest {
}

@Test
fun `GO-2022-0191`() {
fun go_2022_0191() {
// language=JSON
doEncodeDecodeAndCompare(
"""
Expand Down
Loading

0 comments on commit 905be80

Please sign in to comment.