[Snyk] Upgrade @defra/hapi-tracing from 1.0.0 to 1.26.0 #519
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
3 errors
|
Unit tests
Process completed with exit code 1.
|
|
QuestionPageController › Condition evaluation context › filters on condition B:
src/server/plugins/engine/pageControllers/QuestionPageController.test.ts#L497
expect(received).toHaveLength(expected)
Expected length: 2
Received length: 3
Received array: [{"isFormComponent": false, "model": {"attributes": {}, "content": "This is info for Barn owls"}, "type": "Html"}, {"isFormComponent": false, "model": {"attributes": {}, "content": "This is info for other breeds"}, "type": "Html"}, {"isFormComponent": true, "model": {"attributes": {}, "fieldset": {"legend": {"classes": "govuk-fieldset__legend--m", "text": "Select from the list"}}, "id": "XEaUmK", "items": [{"checked": false, "condition": "notBarnOwl", "selected": false, "text": "Option 3", "value": "3"}, {"checked": false, "condition": "notBarnOwl", "selected": false, "text": "Option 4", "value": "4"}], "label": {"text": "Select from the list"}, "name": "XEaUmK", "value": undefined}, "type": "RadiosField"}]
at Object.toHaveLength (src/server/plugins/engine/pageControllers/QuestionPageController.test.ts:497:24)
|
|
QuestionPageController › Condition evaluation context › filters on condition A:
src/server/plugins/engine/pageControllers/QuestionPageController.test.ts#L441
expect(received).toHaveLength(expected)
Expected length: 2
Received length: 3
Received array: [{"isFormComponent": false, "model": {"attributes": {}, "content": "This is info for Barn owls"}, "type": "Html"}, {"isFormComponent": false, "model": {"attributes": {}, "content": "This is info for other breeds"}, "type": "Html"}, {"isFormComponent": true, "model": {"attributes": {}, "fieldset": {"legend": {"classes": "govuk-fieldset__legend--m", "text": "Select from the list"}}, "id": "XEaUmK", "items": [{"checked": false, "condition": "isBarnOwl", "selected": false, "text": "Option 1", "value": "1"}, {"checked": false, "condition": "isBarnOwl", "selected": false, "text": "Option 2", "value": "2"}], "label": {"text": "Select from the list"}, "name": "XEaUmK", "value": undefined}, "type": "RadiosField"}]
at Object.toHaveLength (src/server/plugins/engine/pageControllers/QuestionPageController.test.ts:441:24)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
Unit tests coverage
Expired
|
540 KB |
sha256:f179ef82e36f31a53f4a495ce1ceffc4d5a0943ed26f9a0bfb5d4fc929dde495
|
|