Skip to content

Commit

Permalink
package-refactor: action test deprecations and warnings in build .sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
Reece-Carruthers committed Nov 7, 2024
1 parent 3d4c194 commit e7d55e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,4 @@ lazy val it =

addCommandAlias("testAndCoverage", ";clean;coverage;test;it/test;coverageReport")
addCommandAlias("prePR", ";scalafmt;test:scalafmt;testAndCoverage")
addCommandAlias("preMerge", ";scalafmtCheckAll;testAndCoverage")

scalacOptions += "-deprecation"
addCommandAlias("preMerge", ";scalafmtCheckAll;testAndCoverage")
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class DownloadRequestSuccessControllerSpec extends SpecBase {

val result = route(application, request).value

val redirectUrl = Some(RedirectUrl(routes.IndexController.onPageLoad.url))
val redirectUrl = Some(RedirectUrl(routes.IndexController.onPageLoad().url))

status(result) mustEqual SEE_OTHER
redirectLocation(result).value mustEqual routes.JourneyRecoveryController.onPageLoad(redirectUrl).url
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/RequestDataControllerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class RequestDataControllerSpec extends SpecBase {

val result = route(application, request).value

val redirectUrl = Some(RedirectUrl(routes.IndexController.onPageLoad.url))
val redirectUrl = Some(RedirectUrl(routes.IndexController.onPageLoad().url))

status(result) mustEqual SEE_OTHER
redirectLocation(result).value mustEqual routes.JourneyRecoveryController.onPageLoad(redirectUrl).url
Expand Down

0 comments on commit e7d55e4

Please sign in to comment.