Skip to content

Commit

Permalink
updating question and answer ids and updating other-information unit …
Browse files Browse the repository at this point in the history
…tests
  • Loading branch information
teddmason committed Oct 1, 2024
1 parent 4dde3a1 commit ece3cb6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
32 changes: 28 additions & 4 deletions server/__mock-data__/session-smell.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,42 @@ const session = JSON.parse(`{
],
"smell/contact": [
{
"questionId": 1,
"questionId": 3400,
"questionAsked": "Can we contact you for more information if needed?",
"questionResponse": true,
"answerId": 2
"answerId": 3401
}
],
"smell/images-or-video": [
{
"questionId": 1,
"questionId": 3500,
"questionAsked": "Do you want to send us any images or videos of the problem?",
"questionResponse": true,
"answerId": 2
"answerId": 3501
}
],
"smell/clothing-and-hair": [
{
"questionId": 3600,
"questionAsked": "Does the smell stick to your clothing or hair?",
"questionResponse": true,
"answerId": 3601
}
],
"smell/effect-on-daily-life": [
{
"questionId": 2400,
"questionAsked": "Did you do any of the following because of the smell?",
"questionResponse": true,
"answerId": 2401
}
],
"smell/effect-on-health": [
{
"questionId": 2500,
"questionAsked": "Did the smell cause any of these health problems?",
"questionResponse": true,
"answerId": 2501
}
],
"smell/other-information": "This is a description of the odour",
Expand Down
7 changes: 5 additions & 2 deletions server/routes/__tests__/smell/other-information.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ describe(url, () => {
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 }),
expect.objectContaining({ questionId: 3000, questionAsked: 'Is the smell noticeable indoors?', questionResponse: true, answerId: 30001 }),
expect.objectContaining({ questionId: 1, questionAsked: 'Can we contact you for more information if needed?', questionResponse: true, answerId: 2 }),
expect.objectContaining({ questionId: 1, questionAsked: 'Do you want to send us any images or videos of the problem?', questionResponse: true, answerId: 2 })
expect.objectContaining({ questionId: 3400, questionAsked: 'Can we contact you for more information if needed?', questionResponse: true, answerId: 3401 }),
expect.objectContaining({ questionId: 3500, questionAsked: 'Do you want to send us any images or videos of the problem?', questionResponse: true, answerId: 3501 }),
expect.objectContaining({ questionId: 3600, questionAsked: 'Does the smell stick to your clothing or hair?', questionResponse: true, answerId: 3601 }),
expect.objectContaining({ questionId: 2400, questionAsked: 'Did you do any of the following because of the smell?', questionResponse: true, answerId: 2401 }),
expect.objectContaining({ questionId: 2500, questionAsked: 'Did the smell cause any of these health problems?', questionResponse: true, answerId: 2501 })
])
})
}))
Expand Down

0 comments on commit ece3cb6

Please sign in to comment.