Skip to content

Commit

Permalink
tweak scalafix output expectations because the string output of a pat…
Browse files Browse the repository at this point in the history
…ch has slightly changed
  • Loading branch information
bpholt committed Jun 6, 2024
1 parent 66b1589 commit f9797c8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class AddCatsTaglessInstancesTest extends FunSuite {

test("add SimpleService companion object with implicits") {
val expectedPatchContent =
"""Add(}, RightBrace(}) [467..468), }
"""Add(}, RightBrace [467..468), }
|
| object SimpleService {
| implicit def SimpleServiceInReaderT[F[_]]: SimpleService[({type Λ[β0] = _root_.cats.data.ReaderT[F, SimpleService[F], β0]})#Λ] =
Expand All @@ -92,12 +92,12 @@ class AddCatsTaglessInstancesTest extends FunSuite {

test("add replacement MethodPerEndpoint that extends SimpleService[Future]") {
val expectedPatchContent =
"""Add(}, RightBrace(}) [467..468), }
"""Add(}, RightBrace [467..468), }
| trait MethodPerEndpoint extends SimpleService[Future])""".stripMargin

expect(patch.toString.contains(expectedPatchContent))
}

test("the patches don't touch SimpleService2, which has already been fixed") {
expect(!patch.toString.contains("SimpleService2"))
expect(!patch.toString.contains(s"Add(Future, Future [${range("Future")(input.lastIndexOf)}), F)"))
Expand Down

0 comments on commit f9797c8

Please sign in to comment.