Skip to content

Commit

Permalink
feat(app): remove redundant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Demwunz committed May 15, 2024
1 parent c06f337 commit 10791ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
* Formats data for the `/return-requirements/{sessionId}/additional-submission-options` page
*
* @param {module:SessionModel} session - The returns requirements session instance
* @param {string} requirementIndex - The index of the requirement being added or changed
* @param {Object} [payload] - The payload from the request
*
* @returns {Object} - The data formatted for the view template
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const SessionModel = require('../../models/session.model.js')
*
* @param {string} sessionId - The id of the current session
* @param {Object} payload - The submitted form data
* @param {string} requirementIndex - The index of the requirement being added or changed
* @param {Object} yar - The Hapi `request.yar` session manager passed on by the controller
*
* @returns {Promise<Object>} If no errors it returns an empty object else the page data for the note page including the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ describe('Return Requirements - Additional Submission Options presenter', () =>
const result = AdditionalSubmissionOptionsPresenter.go(session)

expect(result).to.be.equal({
backLink: '/system/return-requirements/61e07498-f309-4829-96a9-72084a54996d/check',
backLink: `/system/return-requirements/${session.id}/check`,
licenceId: '8b7f78ba-f3ad-4cb6-a058-78abc4d1383d',
additionalSubmissionOptions: '',
licenceRef: '01/ABC'
licenceRef: '01/ABC',
sessionId: session.id
})
})
})
Expand All @@ -49,7 +50,7 @@ describe('Return Requirements - Additional Submission Options presenter', () =>
it("returns a link back to the 'check' page", () => {
const result = AdditionalSubmissionOptionsPresenter.go(session)

expect(result.backLink).to.equal('/system/return-requirements/61e07498-f309-4829-96a9-72084a54996d/check')
expect(result.backLink).to.equal(`/system/return-requirements/${session.id}/check`)
})
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ describe('Return Requirements - Submit Additional Submission Options service', (

expect(result).to.equal({
activeNavBar: 'search',
backLink: `/system/return-requirements/${session.id}/check`,
pageTitle: 'Select any additional submission options for the return requirements',
licenceRef: '01/ABC',
additionalSubmissionOptions: [undefined]
Expand Down

0 comments on commit 10791ed

Please sign in to comment.