Skip to content

tests: add test cases #669

tests: add test cases

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

    1 files  ±  0  150 suites  +3   4m 6s ⏱️ +4s
398 tests +10  396 ✔️ +  9  1 💤 ±0  1 +1 
401 runs  +11  399 ✔️ +10  1 💤 ±0  1 +1 

Results for commit d1396b8. ± Comparison against earlier commit e537e73.

Annotations

Check warning on line 0 in useTranslatedCategories should return translated categories

See this annotation in the file changed.

@github-actions 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)