diff --git a/parser/src/test/scala/play/twirl/parser/test/ParserSpec.scala b/parser/src/test/scala/play/twirl/parser/test/ParserSpec.scala index 296f91ce..d77549af 100644 --- a/parser/src/test/scala/play/twirl/parser/test/ParserSpec.scala +++ b/parser/src/test/scala/play/twirl/parser/test/ParserSpec.scala @@ -35,12 +35,11 @@ class ParserSpec extends AnyWordSpec with Matchers with Inside { } def parseFailure(templateName: String, message: String, line: Int, column: Int) = - inside(parse(templateName)) { - case parser.Error(_, rest, errors) => - val e = errors.head - e.str mustBe message - e.pos.line mustBe line - e.pos.column mustBe column + inside(parse(templateName)) { case parser.Error(_, rest, errors) => + val e = errors.head + e.str mustBe message + e.pos.line mustBe line + e.pos.column mustBe column } def parseTemplate(templateName: String): Template = { diff --git a/sbt-twirl/src/test/scala/play/twirl/sbt/test/TemplateMappingSpec.scala b/sbt-twirl/src/test/scala/play/twirl/sbt/test/TemplateMappingSpec.scala index a31c4dc7..ae70f2b1 100644 --- a/sbt-twirl/src/test/scala/play/twirl/sbt/test/TemplateMappingSpec.scala +++ b/sbt-twirl/src/test/scala/play/twirl/sbt/test/TemplateMappingSpec.scala @@ -48,9 +48,8 @@ class TemplateMappingSpec extends AnyWordSpec with Matchers with Inspectors { 10 -> Location(4, 1, 7, "d") ) - forAll(testOffsets) { - case (offset, location) => - mapping.location(offset) mustBe Some(location) + forAll(testOffsets) { case (offset, location) => + mapping.location(offset) mustBe Some(location) } val testPositions = Seq( @@ -63,9 +62,8 @@ class TemplateMappingSpec extends AnyWordSpec with Matchers with Inspectors { (5, 0) -> Location(4, 1, 7, "d") ) - forAll(testPositions) { - case ((line, column), location) => - mapping.location(line, column) mustBe Some(location) + forAll(testPositions) { case ((line, column), location) => + mapping.location(line, column) mustBe Some(location) } } }