UISACQCOMP-232: Move reusable helper function to support version hist… #1390
3 fail, 2 skipped, 588 pass in 4m 3s
Annotations
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
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
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)