Skip to content

Commit

Permalink
Add PoP phone number page to contact section
Browse files Browse the repository at this point in the history
  • Loading branch information
libuk committed Nov 13, 2023
1 parent e3b78bc commit 6b6441a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { Task } from '../../../utils/decorators'
import BackupContact from './backupContact'
import PractitionerPdu from './practitionerPdu'
import ProbationPractitioner from './probationPractitioner'
import PopPhoneNumber from './popPhoneNumber'

@Task({
name: 'Contact details',
actionText: 'Enter contact details',
slug: 'contact-details',
pages: [ProbationPractitioner, BackupContact, PractitionerPdu],
pages: [ProbationPractitioner, BackupContact, PractitionerPdu, PopPhoneNumber],
})
export default class ContactDetails {}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('PractitionerPdu', () => {
})

itShouldHavePreviousValue(new PractitionerPdu({}, application), 'backup-contact')
itShouldHaveNextValue(new PractitionerPdu({}, application), '')
itShouldHaveNextValue(new PractitionerPdu({}, application), 'pop-phone-number')

describe('errors', () => {
it('returns an empty object if the PDU is defined', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class PractitionerPdu implements TasklistPage {
}

next() {
return ''
return 'pop-phone-number'
}

errors() {
Expand Down

0 comments on commit 6b6441a

Please sign in to comment.