Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
madebyzak committed Mar 10, 2025
1 parent 16019f7 commit cd88fd2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context('Forward Application Page', () => {
const { prisonerApp: application } = new TestData()
const {
id: applicationId,
requestedBy: { id: prisonerId },
requestedBy: { username: prisonerId },
} = application

const visitPage = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context('View Swap VOs for PIN Credit Application Page', () => {
const { prisonerApp: application } = new TestData()
const {
id: applicationId,
requestedBy: { id: prisonerId },
requestedBy: { username: prisonerId },
} = application

beforeEach(() => {
Expand Down
4 changes: 3 additions & 1 deletion server/@types/managingAppsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ export interface AssignedGroup {
}

export interface RequestedBy {
id: string
username: string
userId: string
firstName: string
lastName: string
category: string
location: string
iep: string
}
Expand Down
8 changes: 5 additions & 3 deletions server/routes/testutils/testData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ export default class TestData {
id: 'ABC',
name: 'HMP ABC',
},
initialApp: 'SWAP_VISITING_ORDERS_FOR_PIN_CREDIT',
initialApp: 'PIN_PHONE_CREDIT_SWAP_VISITING_ORDERS',
type: 'DEPARTMENT',
email: 'business+hub+ABC@justice.gov.uk',
},
appType: 'SWAP_VISITING_ORDERS_FOR_PIN_CREDIT',
appType: 'PIN_PHONE_CREDIT_SWAP_VISITING_ORDERS',
requestedBy: {
id: 'G123456',
username: 'G123456',
userId: 'cb42921f-3b33-4efa-a873-4a1d86eb6caa',
firstName: 'Emily',
lastName: 'Brown',
category: 'PRISONER',
location: 'C-2-013',
iep: 'Enhanced',
},
Expand Down

0 comments on commit cd88fd2

Please sign in to comment.