Skip to content

Commit

Permalink
bugfix: Fix completions tests after a new artifact starting with io.c…
Browse files Browse the repository at this point in the history
…irc showed up

This shouldn't happen too often.
  • Loading branch information
tgodzik committed Oct 6, 2023
1 parent 91e36ff commit 4b59d7c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class CompletionMillIvySuite extends BaseCompletionSuite {
"""|val dependency = ivy"io.cir@@"
|""".stripMargin,
"""|io.circe
|io.circul
|""".stripMargin,
filename = "build.sc",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class CompletionSbtLibSuite extends BaseCompletionSuite {
"""|val dependency = "io.cir@@" %
|""".stripMargin,
"""|io.circe
|io.circul
|""".stripMargin,
filename = "A.sbt",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class CompletionScalaCliSuite extends BaseCompletionSuite {
"""|//> using lib "io.cir@@
|package A
|""".stripMargin,
"io.circe",
"""|io.circe
|io.circul""".stripMargin,
)

checkEdit(
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/src/main/scala/tests/BaseAmmoniteSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,9 @@ abstract class BaseAmmoniteSuite(scalaVersion: String)
_ <- server.didSave("main.sc")(identity)
_ <- server.executeCommand(ServerCommands.StartAmmoniteBuildServer)

groupExpectedCompletionList = "io.circe"
groupExpectedCompletionList =
"""|io.circe
|io.circul""".stripMargin
groupCompletionList <- server.completion(
"main.sc",
"import $ivy.`io.cir@@`",
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/src/main/scala/tests/BaseWorksheetLspSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,9 @@ abstract class BaseWorksheetLspSuite(
|""".stripMargin
)
_ <- server.didOpen("a/src/main/scala/foo/Main.worksheet.sc")
groupExpectedCompletionList = "io.circe"
groupExpectedCompletionList =
"""|io.circe
|io.circul""".stripMargin
groupCompletionList <- server.completion(
"a/src/main/scala/foo/Main.worksheet.sc",
"import $ivy.`io.cir@@`",
Expand Down

0 comments on commit 4b59d7c

Please sign in to comment.