From e7d55e470efc0275c3ab62a6727b7932b5e6161e Mon Sep 17 00:00:00 2001 From: Reece-Carruthers <99188015+Reece-Carruthers@users.noreply.github.com> Date: Thu, 7 Nov 2024 08:33:49 +0000 Subject: [PATCH] package-refactor: action test deprecations and warnings in build .sbt --- build.sbt | 4 +--- test/controllers/DownloadRequestSuccessControllerSpec.scala | 2 +- test/controllers/RequestDataControllerSpec.scala | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index 3f7cfa7e..18666e8b 100644 --- a/build.sbt +++ b/build.sbt @@ -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" \ No newline at end of file +addCommandAlias("preMerge", ";scalafmtCheckAll;testAndCoverage") \ No newline at end of file diff --git a/test/controllers/DownloadRequestSuccessControllerSpec.scala b/test/controllers/DownloadRequestSuccessControllerSpec.scala index 01ff43f7..499714f7 100644 --- a/test/controllers/DownloadRequestSuccessControllerSpec.scala +++ b/test/controllers/DownloadRequestSuccessControllerSpec.scala @@ -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 diff --git a/test/controllers/RequestDataControllerSpec.scala b/test/controllers/RequestDataControllerSpec.scala index 7539b89f..08c234a6 100644 --- a/test/controllers/RequestDataControllerSpec.scala +++ b/test/controllers/RequestDataControllerSpec.scala @@ -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