Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests in JS target and downgraded Kotlin #14

Merged
merged 4 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Fixed Show fixed Hide fixed
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
Fixed Show fixed Hide fixed
doEncodeDecodeAndCompare(
"""
Expand Down Expand Up @@ -95,7 +99,7 @@ class GoTest {
}

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

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