Skip to content

Commit

Permalink
fix(j-s): format
Browse files Browse the repository at this point in the history
  • Loading branch information
thorhildurt committed Jan 21, 2025
1 parent c193073 commit 9777093
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ describe('transformCase', () => {
} as Case

const appealInfo = transformCase(theCase)
console.log({appealInfo})

expect(appealInfo).toEqual(
expect.objectContaining({
Expand Down Expand Up @@ -552,7 +551,7 @@ describe('getAppealInfo', () => {
accusedPostponedAppealDate: '2022-06-15T19:50:08.033Z',
prosecutorPostponedAppealDate: '2022-06-15T19:50:08.033Z',
} as Case

const appealInfo = getAppealInfo(theCase)

expect(appealInfo).toEqual({
Expand Down Expand Up @@ -694,7 +693,7 @@ describe('getIndictmentInfo', () => {
)

expect(indictmentInfo).toEqual({
indictmentAppealDeadline: '2022-07-12T23:59:59.999Z',
indictmentAppealDeadline: '2022-07-12T23:59:59.999Z',
indictmentVerdictViewedByAll: false,
indictmentVerdictAppealDeadlineExpired: false,
})
Expand Down Expand Up @@ -738,7 +737,15 @@ describe('getIndictmentInfo', () => {
defendants,
)

const expectedAppealDeadline = new Date(rulingDate.getFullYear(),rulingDate.getMonth(), rulingDate.getDate() + 3, 23, 59, 59, 999)
const expectedAppealDeadline = new Date(
rulingDate.getFullYear(),
rulingDate.getMonth(),
rulingDate.getDate() + 3,
23,
59,
59,
999,
)
expect(indictmentInfo).toEqual({
indictmentAppealDeadline: expectedAppealDeadline.toISOString(),
indictmentVerdictViewedByAll: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ export const getAppealInfo = (theCase: Case): AppealInfo => {
baseDate: theRulingDate,
}).toISOString()

console.log({rulingDate})
console.log({appealDeadline: appealInfo.appealDeadline})

appealInfo.canProsecutorAppeal =
!hasBeenAppealed && isAppealableDecision(prosecutorAppealDecision)

Expand Down

0 comments on commit 9777093

Please sign in to comment.