Skip to content

Commit

Permalink
fix(j-s): Merge Email (#16011)
Browse files Browse the repository at this point in the history
* Fixes conclusion in merge email

* Updates unit test

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
gudjong and kodiakhq[bot] authored Sep 16, 2024
1 parent 7de9b13 commit e77487b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from '@island.is/judicial-system/consts'
import {
CaseDecision,
CaseIndictmentRulingDecision,
CaseState,
CaseType,
NotificationType,
Expand Down Expand Up @@ -87,6 +88,7 @@ describe('InternalNotificationController - Send ruling notifications', () => {
type: CaseType.INDICTMENT,
courtCaseNumber: '007-2022-07',
court: { name: 'Héraðsdómur Reykjavíkur' },
indictmentRulingDecision: CaseIndictmentRulingDecision.MERGE,
prosecutor,
} as Case

Expand All @@ -101,7 +103,7 @@ describe('InternalNotificationController - Send ruling notifications', () => {
expect.objectContaining({
to: [{ name: prosecutor.name, address: prosecutor.email }],
subject: 'Máli lokið 007-2022-07',
html: `Máli 007-2022-07 hjá Héraðsdómi Reykjavíkur hefur verið lokið.<br /><br />Niðurstaða: Ekki skráð<br /><br />Skjöl málsins eru aðgengileg á ${expectedLink}yfirlitssíðu málsins í Réttarvörslugátt</a>.`,
html: `Máli 007-2022-07 hjá Héraðsdómi Reykjavíkur hefur verið lokið.<br /><br />Niðurstaða: Sameinað<br /><br />Skjöl málsins eru aðgengileg á ${expectedLink}yfirlitssíðu málsins í Réttarvörslugátt</a>.`,
}),
)
})
Expand Down
2 changes: 2 additions & 0 deletions libs/judicial-system/formatters/src/lib/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export const getHumanReadableCaseIndictmentRulingDecision = (
return 'Frávísun'
case CaseIndictmentRulingDecision.CANCELLATION:
return 'Niðurfelling máls'
case CaseIndictmentRulingDecision.MERGE:
return 'Sameinað'
default:
return 'Ekki skráð'
}
Expand Down

0 comments on commit e77487b

Please sign in to comment.