Skip to content

Commit

Permalink
Fix large capital profile functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgain committed Dec 17, 2024
1 parent 2c46ab9 commit d278390
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import React from 'react'

import { SummaryTable } from '../../../../components'
import { requiredCheckTypes } from './constants'
import { formatDate, DATE_FORMAT_COMPACT } from '../../../../utils/date-utils'
import {
formatDate,
DATE_FORMAT_DAY_MONTH_YEAR,
} from '../../../../utils/date-utils'

const buildRequiredCheckField = (
requiredChecks,
Expand All @@ -18,7 +21,7 @@ const buildRequiredCheckField = (
`\n` +
`Date of most recent background checks: ${formatDate(
requiredChecksConductedOn,
DATE_FORMAT_COMPACT
DATE_FORMAT_DAY_MONTH_YEAR
)}` +
`\n` +
`Person responsible for most recent background checks: ${requiredChecksConductedBy?.name}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('Company Investments and Large capital profile', () => {
'Investable capital': 30000,
'Investor description': 'incomplete',
'Has this investor cleared the required checks within the last 12 months?':
'Cleared\nDate of most recent background checks: 29 04 2019\nPerson responsible for most recent background checks: Aaron Chan',
'Cleared\nDate of most recent background checks: 29 April 2019\nPerson responsible for most recent background checks: Aaron Chan',
},
})
})
Expand Down

0 comments on commit d278390

Please sign in to comment.