Skip to content

Commit

Permalink
Fix metals tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rochala committed Dec 20, 2023
1 parent 1ce9d10 commit f4ad681
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ object ScalaCliParser:
case versionString =>
ScalaVersionUtil.validateStable(versionString, cache, repositories)
}
case None => BuildInfo.latest3.asRight
case None => BuildInfo.stable3.asRight
}

val maybeToolkitVersion = directiveMap.get("toolkit").map(_.headOption).flatten.map {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class MetalsServerTest extends CatsEffectSuite {

test("Text edit is proper for worksheet inside using directives") {
testCompletionEdit(
testTargets = List(ScalaCli(BuildInfo.latest3)),
testTargets = List(ScalaCli(BuildInfo.stable3)),
code = """//> using dep org.scala-lan@@
|object M {
| println()
Expand All @@ -455,7 +455,7 @@ class MetalsServerTest extends CatsEffectSuite {

test("Text edit is proper for no worksheet inside using directives") {
testCompletionEdit(
testTargets = List(ScalaCli(BuildInfo.latest3)),
testTargets = List(ScalaCli(BuildInfo.stable3)),
code = """//> using dep org.scala-lan@@
|object M {
| println()
Expand Down Expand Up @@ -496,7 +496,7 @@ class MetalsServerTest extends CatsEffectSuite {
|println("test")""".stripMargin
convertScalaCliConfiguration(
code = code,
expected = ScastieMetalsOptions(Set(), ScalaCli(BuildInfo.latest3), code).asRight
expected = ScastieMetalsOptions(Set(), ScalaCli(BuildInfo.stable3), code).asRight
)
}

Expand All @@ -505,7 +505,7 @@ class MetalsServerTest extends CatsEffectSuite {
val code = """//> using dep com.lihaoyi::os-lib:0.9.1
|println("test")""".stripMargin

val target = ScalaCli(BuildInfo.latest3)
val target = ScalaCli(BuildInfo.stable3)
convertScalaCliConfiguration(
code = code,
expected = ScastieMetalsOptions(
Expand All @@ -520,7 +520,7 @@ class MetalsServerTest extends CatsEffectSuite {
val code = """//> using lib com.lihaoyi::os-lib:0.9.1
|println("test")""".stripMargin

val target = ScalaCli(BuildInfo.latest3)
val target = ScalaCli(BuildInfo.stable3)
convertScalaCliConfiguration(
code = code,
expected = ScastieMetalsOptions(
Expand All @@ -535,7 +535,7 @@ class MetalsServerTest extends CatsEffectSuite {
val code = """//> using toolkit latest
|println("test")""".stripMargin

val target = ScalaCli(BuildInfo.latest3)
val target = ScalaCli(BuildInfo.stable3)
convertScalaCliConfiguration(
code = code,
expected = ScastieMetalsOptions(
Expand All @@ -550,7 +550,7 @@ class MetalsServerTest extends CatsEffectSuite {
val code = """//> using toolkit 0.2.1
|println("test")""".stripMargin

val target = ScalaCli(BuildInfo.latest3)
val target = ScalaCli(BuildInfo.stable3)
convertScalaCliConfiguration(
code = code,
expected = ScastieMetalsOptions(
Expand Down Expand Up @@ -581,7 +581,7 @@ class MetalsServerTest extends CatsEffectSuite {
|//> using dep org.scala-lang:scala3-library_3:3.3.1
|println("test")""".stripMargin

val target = ScalaCli(BuildInfo.latest3)
val target = ScalaCli(BuildInfo.stable3)
convertScalaCliConfiguration(
code = code,
expected = ScastieMetalsOptions(
Expand All @@ -596,7 +596,7 @@ class MetalsServerTest extends CatsEffectSuite {
val code = """//> using dep com.lihaoyi::os-lib:0.9.1 org.scala-lang:scala3-library_3:3.3.1
|println("test")""".stripMargin

val target = ScalaCli(BuildInfo.latest3)
val target = ScalaCli(BuildInfo.stable3)
convertScalaCliConfiguration(
code = code,
expected = ScastieMetalsOptions(
Expand Down

0 comments on commit f4ad681

Please sign in to comment.