Skip to content

Commit

Permalink
Merge branch 'main' into refactor-review-licence-post-pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruikshanks authored Apr 24, 2024
2 parents 11aeedc + 493b895 commit ee3b1ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/services/return-requirements/reason.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async function go (sessionId) {

return {
activeNavBar: 'search',
checkYourAnswersVisited: session.data.checkYourAnswersVisited,
pageTitle: 'Select the reason for the return requirement',
...formattedData
}
Expand Down
2 changes: 2 additions & 0 deletions test/services/return-requirements/reason.service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('Select Reason service', () => {
await DatabaseSupport.clean()
session = await SessionHelper.add({
data: {
checkYourAnswersVisited: false,
licence: {
id: '8b7f78ba-f3ad-4cb6-a058-78abc4d1383d',
currentVersionStartDate: '2023-01-01T00:00:00.000Z',
Expand All @@ -45,6 +46,7 @@ describe('Select Reason service', () => {

expect(result).to.equal({
activeNavBar: 'search',
checkYourAnswersVisited: false,
pageTitle: 'Select the reason for the return requirement',
licenceRef: '01/ABC'
}, { skip: ['id'] })
Expand Down

0 comments on commit ee3b1ef

Please sign in to comment.