Skip to content

Commit

Permalink
Implementtation for SIR-1230
Browse files Browse the repository at this point in the history
  • Loading branch information
sujithvg committed Jan 14, 2025
1 parent d8f6437 commit d1754a4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions server/__mock-data__/session-smell.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,35 +60,35 @@ const session = JSON.parse(`{
"smell/location-address": [
{
"questionId": 1400,
"questionAsked": "Enter the address",
"questionAsked": "What is your home address?",
"questionResponse": true,
"answerId": 1401,
"otherDetails": "address 1"
},
{
"questionId": 1400,
"questionAsked": "Enter the address",
"questionAsked": "What is your home address?",
"questionResponse": true,
"answerId": 1402,
"otherDetails": "address 2"
},
{
"questionId": 1400,
"questionAsked": "Enter the address",
"questionAsked": "What is your home address?",
"questionResponse": true,
"answerId": 1403,
"otherDetails": "town"
},
{
"questionId": 1400,
"questionAsked": "Enter the address",
"questionAsked": "What is your home address?",
"questionResponse": true,
"answerId": 1404,
"otherDetails": "county"
},
{
"questionId": 1400,
"questionAsked": "Enter the address",
"questionAsked": "What is your home address?",
"questionResponse": true,
"answerId": 1405,
"otherDetails": "m11mm"
Expand Down
10 changes: 5 additions & 5 deletions server/routes/__tests__/smell/other-information.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ describe(url, () => {
expect.objectContaining({ questionId: 3200, questionAsked: 'Can you give details about where the smell is coming from?', questionResponse: true, answerId: 3204, otherDetails: 'test' }),
expect.objectContaining({ questionId: 3200, questionAsked: 'Can you give details about where the smell is coming from?', questionResponse: true, answerId: 3205, otherDetails: 'm11mm' }),
expect.objectContaining({ questionId: 3100, questionAsked: 'Is the smell affecting you at home?', questionResponse: true, answerId: 3001 }),
expect.objectContaining({ questionId: 1400, questionAsked: 'Enter the address', questionResponse: true, answerId: 1401, otherDetails: 'address 1' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'Enter the address', questionResponse: true, answerId: 1402, otherDetails: 'address 2' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'Enter the address', questionResponse: true, answerId: 1403, otherDetails: 'town' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'Enter the address', questionResponse: true, answerId: 1404, otherDetails: 'county' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'Enter the address', questionResponse: true, answerId: 1405, otherDetails: 'm11mm' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'What is your home address?', questionResponse: true, answerId: 1401, otherDetails: 'address 1' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'What is your home address?', questionResponse: true, answerId: 1402, otherDetails: 'address 2' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'What is your home address?', questionResponse: true, answerId: 1403, otherDetails: 'town' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'What is your home address?', questionResponse: true, answerId: 1404, otherDetails: 'county' }),
expect.objectContaining({ questionId: 1400, questionAsked: 'What is your home address?', questionResponse: true, answerId: 1405, otherDetails: 'm11mm' }),
expect.objectContaining({ questionId: 1900, questionAsked: 'Has this smell caused you problems before?', questionResponse: true, answerId: 1901 }),
expect.objectContaining({ questionId: 2100, questionAsked: 'Is the smell still there?', questionResponse: true, answerId: 2101 }),
expect.objectContaining({ questionId: 2200, questionAsked: 'How strong is the smell?', questionResponse: true, answerId: 2203 }),
Expand Down
2 changes: 1 addition & 1 deletion server/utils/question-sets.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ const questionSets = {
SMELL_LOCATION_ADDRESS: {
questionId: 1400,
key: constants.redisKeys.SMELL_LOCATION_ADDRESS,
text: 'Enter the address',
text: 'What is your home address?',
answers: {
addressLine1: {
answerId: 1401,
Expand Down
2 changes: 1 addition & 1 deletion server/views/smell/location-address.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{% call govukFieldset({
legend: {
text: "Enter the address",
text: "What is your home address?",
classes: "govuk-fieldset__legend--l",
isPageHeading: true
}
Expand Down

0 comments on commit d1754a4

Please sign in to comment.