Skip to content

Commit 15af645

Browse files
committed
Revert "tweak scalafix output expectations because the string output of a patch has slightly changed"
This reverts commit f9797c8.
1 parent 533edb9 commit 15af645

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scalafix/rules/src/test/scala/com/dwolla/scrooge/scalafix/AddCatsTaglessInstancesTest.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class AddCatsTaglessInstancesTest extends FunSuite {
6969

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

9393
test("add replacement MethodPerEndpoint that extends SimpleService[Future]") {
9494
val expectedPatchContent =
95-
"""Add(}, RightBrace [467..468), }
95+
"""Add(}, RightBrace(}) [467..468), }
9696
| trait MethodPerEndpoint extends SimpleService[Future])""".stripMargin
9797

9898
expect(patch.toString.contains(expectedPatchContent))
9999
}
100-
100+
101101
test("the patches don't touch SimpleService2, which has already been fixed") {
102102
expect(!patch.toString.contains("SimpleService2"))
103103
expect(!patch.toString.contains(s"Add(Future, Future [${range("Future")(input.lastIndexOf)}), F)"))

0 commit comments

Comments
 (0)