Skip to content

Commit

Permalink
Temp year change
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajosyula2020 committed Dec 4, 2023
1 parent d746edf commit 70a2211
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import uk.gov.hmrc.hmrcemailrenderer.templates.ServiceIdentifier.AnnualTaxSummar

object AtsTemplates {

val taxYearFrom = LocalDate.now().getYear - 2
val taxYearTo = LocalDate.now().getYear - 1
val taxYearFrom = LocalDate.now().getYear - 1
val taxYearTo = LocalDate.now().getYear
private val ats_year_for_subject = s"Your Annual Tax Summary for $taxYearFrom to $taxYearTo is now ready"
private val ats_year_for_subject_welsh =
s"Mae’ch Crynodeb Treth Blynyddol ar gyfer $taxYearFrom i $taxYearTo bellach yn barod"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class AtsAnnualTaxReturnWelshSpec
val params = commonParameters ++ TemplateParams.newMessageAlert_Names

"render correct subject" in {
val taxYearFrom = LocalDate.now().getYear - 2
val taxYearTo = LocalDate.now().getYear - 1
val taxYearFrom = LocalDate.now().getYear - 1
val taxYearTo = LocalDate.now().getYear
template.subject(Map.empty) shouldBe (s"Mae’ch Crynodeb Treth Blynyddol ar gyfer $taxYearFrom i $taxYearTo bellach yn barod")
template.fromAddress(Map.empty) shouldBe "CThEM – Eich Crynodeb Treth Blynyddol <noreply@tax.service.gov.uk>"
}
Expand Down

0 comments on commit 70a2211

Please sign in to comment.