tests: add test cases #669
GitHub Actions / Jest Unit Test Results
failed
Dec 5, 2023 in 0s
1 fail, 1 skipped, 396 pass in 4m 6s
Annotations
Check warning on line 0 in useTranslatedCategories should return translated categories
github-actions / Jest Unit Test Results
useTranslatedCategories should return translated categories (useTranslatedCategories should return translated categories) failed
artifacts/jest-junit/junit.xml
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
Array [
+ Array [
Object {
"id": "1",
"value": "Category 1",
},
Object {
"id": "2",
"value": "Category 2",
},
+ ],
]
at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/PrivilegedDonorContacts/hooks/useTranslatedCategories/useTranslatedCategories.test.js:32:28)
at Object.asyncJestTest (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/stripes-acq-components/stripes-acq-components/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Loading