Skip to content

Commit

Permalink
MAP-575 Rename flexion techniques from final lock to wrist
Browse files Browse the repository at this point in the history
  • Loading branch information
danbenton-mojdt committed Jan 16, 2024
1 parent 70b4e5d commit b119599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const ControlAndRestraintPosition = toEnum({
})

export const PainInducingTechniquesUsed = toEnum({
FINAL_LOCK_FLEXION: { value: 'FINAL_LOCK_FLEXION', label: 'Final lock flexion' },
FINAL_LOCK_ROTATION: { value: 'FINAL_LOCK_ROTATION', label: 'Final lock rotation' },
FINAL_LOCK_FLEXION: { value: 'FINAL_LOCK_FLEXION', label: 'Wrist flexion' },
FINAL_LOCK_ROTATION: { value: 'FINAL_LOCK_ROTATION', label: 'Wrist rotation' },
MANDIBULAR_ANGLE_TECHNIQUE: { value: 'MANDIBULAR_ANGLE_TECHNIQUE', label: 'Mandibular angle technique' },
SHOULDER_CONTROL: { value: 'SHOULDER_CONTROL', label: 'Shoulder control' },
THROUGH_RIGID_BAR_CUFFS: { value: 'THROUGH_RIGID_BAR_CUFFS', label: 'Through rigid bar cuffs' },
Expand Down
4 changes: 2 additions & 2 deletions server/services/reportSummary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ describe('reportSummary', () => {
form.useOfForceDetails.painInducingTechniques = true
form.useOfForceDetails.painInducingTechniquesUsed = ['FINAL_LOCK_FLEXION']
const result = reportSummary(form, offenderDetail, prison, locationDescription, involvedStaff, incidentDate)
expect(result.useOfForceDetails.painInducingTechniques).toEqual('Yes - Final lock flexion')
expect(result.useOfForceDetails.painInducingTechniques).toEqual('Yes - Wrist flexion')
})

it('should return 2 techniques used', () => {
form.useOfForceDetails.painInducingTechniques = true
form.useOfForceDetails.painInducingTechniquesUsed = ['FINAL_LOCK_FLEXION', 'THUMB_LOCK']
const result = reportSummary(form, offenderDetail, prison, locationDescription, involvedStaff, incidentDate)
expect(result.useOfForceDetails.painInducingTechniques).toEqual('Yes - Final lock flexion, Thumb lock')
expect(result.useOfForceDetails.painInducingTechniques).toEqual('Yes - Wrist flexion, Thumb lock')
})

it('should return "No"', () => {
Expand Down

0 comments on commit b119599

Please sign in to comment.