Skip to content

UISACQCOMP-232: Move reusable helper function to support version hist… #1390

UISACQCOMP-232: Move reusable helper function to support version hist…

UISACQCOMP-232: Move reusable helper function to support version hist… #1390

GitHub Actions / Jest Unit Test Results failed Nov 21, 2024 in 0s

3 fail, 2 skipped, 588 pass in 4m 1s

    1 files  223 suites   4m 1s ⏱️
593 tests 588 ✔️ 2 💤 3
596 runs  591 ✔️ 2 💤 3

Results for commit 99aaaa4.

Annotations

Check warning on line 0 in getVersionMetadata should return metadata from entity and updatedByUserId and updatedDate from version

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

getVersionMetadata should return metadata from entity and updatedByUserId and updatedDate from version (getVersionMetadata should return metadata from entity and updatedByUserId and updatedDate from version) failed

artifacts/jest-junit/junit.xml
Raw output
Error: expect(received).toEqual(expected) // deep equality

- Expected  - 1
+ Received  + 2

  Object {
+   "createdDate": "2024-11-21T01:55:55.066+00:00",
    "metadataKey": "metadataValue",
    "updatedByUserId": "userId",
-   "updatedDate": "actionDate",
+   "updatedDate": "2024-11-21T05:14:30.510+00:00",
  }
    at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/VersionHistory/getVersionMetadata.test.js:18:49)
    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)

Check warning on line 0 in getVersionMetadata should return empty object if entity is not provided

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

getVersionMetadata should return empty object if entity is not provided (getVersionMetadata should return empty object if entity is not provided) failed

artifacts/jest-junit/junit.xml
Raw output
Error: expect(received).toEqual(expected) // deep equality

- Expected  - 1
+ Received  + 4

- Object {}
+ Object {
+   "updatedByUserId": "userId",
+   "updatedDate": "2024-11-21T05:14:30.510+00:00",
+ }
    at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/VersionHistory/getVersionMetadata.test.js:26:41)
    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)

Check warning on line 0 in getVersionMetadata should return empty object if version is not provided

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

getVersionMetadata should return empty object if version is not provided (getVersionMetadata should return empty object if version is not provided) failed

artifacts/jest-junit/junit.xml
Raw output
Error: expect(received).toEqual(expected) // deep equality

- Expected  - 1
+ Received  + 5

- Object {}
+ Object {
+   "metadataKey": "metadataValue",
+   "updatedByUserId": undefined,
+   "updatedDate": undefined,
+ }
    at Object.<anonymous> (/home/runner/work/stripes-acq-components/stripes-acq-components/lib/VersionHistory/getVersionMetadata.test.js:36:46)
    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)