Gap 2620/fixing validation issues #899
Annotations
3 errors and 1 warning
Run tests:
packages/admin/src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx#L114
expect(received).toStrictEqual(expected) // deep equality
- Expected - 1
+ Received + 3
Object {
"fieldTitle": "Test Section Field Title",
"hintText": "Test hint text",
- "optional": "false",
"responseType": "Dropdown",
+ "validation": Object {
+ "mandatory": true,
+ },
}
at Object.toStrictEqual (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:114:44)
|
Run tests:
packages/admin/src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx#L317
expect(jest.fn()).toBeCalledWith(...expected)
Expected: "testSessionId", "testApplicationId", "testSectionId", "testQuestionId", ObjectContaining {"options": ["option one", "option two"], "validation": {"mandatory": true}}
Received: "testSessionId", "testApplicationId", "testSectionId", "testQuestionId", {"fieldTitle": "Test Section Field Title", "hintText": "Test hint text", "options": ["option one", "option two"], "responseType": "Dropdown", "validation": {"mandatory": "true"}, "version": undefined}
Number of calls: 1
at Object.toBeCalledWith (src/pages/build-application/[applicationId]/[sectionId]/[questionId]/edit/question-options.getServerSideProps.test.tsx:317:33)
|
Run tests
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache/restore@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading