Skip to content

wip

wip #221

GitHub Actions / JUnit Test Report failed Jan 21, 2025 in 0s

339 tests run, 336 passed, 0 skipped, 3 failed.

Annotations

Check failure on line 1 in StatusChangeService handleEffects LOCATION_CHECK should handle the new status correctly (allLocations: true)

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

StatusChangeService handleEffects LOCATION_CHECK should handle the new status correctly (allLocations: true)

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

- Expected
+ Received

  {"_id": "proposalId", "dizApprovedLocations": [], "numberOfRequestedLocations": 37, "openDizChecks": ["MRI", "KUM", "UKT", "UKU", "UKR", "UKS", "UKAU", "Charité", "UMG", "MHH", …], "projectAbbreviation": "projectAbbreviation", "requestedButExcludedLocations": [], "signedContracts": [], "status": "LOCATION_CHECK", "statusChangeToLocationCheckAt": 2025-01-21T09:55:02.275Z, "uacApprovals": [{}], "uacApprovedLocations": [], "userProject": {"addressees": {"desiredLocations": ["MRI", "KUM", "UKT", "UKU", "UKR", "UKS", "UKAU", "Charité", "UMG", "MHH", …]}}, "version": {"mayor": 2, "minor": 0}},
- Array [
-   "REMINDER_FDPG_CHECK",
- ]
+ Array [],

Number of calls: 1
    at /home/runner/work/fdpg-api/fdpg-api/src/modules/proposal/services/__tests__/status-change.service.spec.ts:179:67
    at processTicksAndRejections (node:internal/process/task_queues:105:5)

Check failure on line 1 in StatusChangeService handleEffects LOCATION_CHECK should handle the new status correctly (allLocations: false)

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

StatusChangeService handleEffects LOCATION_CHECK should handle the new status correctly (allLocations: false)

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

- Expected
+ Received

  {"_id": "proposalId", "dizApprovedLocations": [], "numberOfRequestedLocations": 1, "openDizChecks": ["UKL"], "projectAbbreviation": "projectAbbreviation", "requestedButExcludedLocations": [], "signedContracts": [], "status": "LOCATION_CHECK", "statusChangeToLocationCheckAt": 2025-01-21T09:55:02.319Z, "uacApprovals": [{}], "uacApprovedLocations": [], "userProject": {"addressees": {"desiredLocations": ["UKL"]}}, "version": {"mayor": 2, "minor": 0}},
- Array [
-   "REMINDER_FDPG_CHECK",
- ]
+ Array [],

Number of calls: 1
    at /home/runner/work/fdpg-api/fdpg-api/src/modules/proposal/services/__tests__/status-change.service.spec.ts:179:67
    at processTicksAndRejections (node:internal/process/task_queues:105:5)

Check failure on line 1 in ProposalContractingService setUacApproval should set the uac approval

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

ProposalContractingService setUacApproval should set the uac approval

Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

- Expected
+ Received

  {"_id": "proposalId", "projectAbbreviation": "projectAbbreviation", "save": [Function mockConstructor], "status": "LOCATION_CHECK"},
  "UKL",
- ObjectContaining {"blobName": "blobName"},
+ {"dataAmount": 1234, "value": true},
- Object {
-   "dataAmount": 1234,
-   "value": true,
+ UploadDto {
+   "_id": "678f6efbc65b58f1ded88e9c",
+   "blobName": "blobName",
+   "fileName": undefined,
+   "fileSize": undefined,
+   "mimetype": undefined,
+   "owner": Object {
+     "email": "[email protected]",
+     "firstName": "firstName",
+     "id": "userId",
+     "lastName": "lastName",
+     "miiLocation": "UKL",
+     "role": "Researcher",
+     "username": "username",
+   },
+   "type": "CONTRACT_CONDITION",
  },
+ undefined,

Number of calls: 1
    at /home/runner/work/fdpg-api/fdpg-api/src/modules/proposal/services/__tests__/proposal-contracting.service.spec.ts:234:45
    at processTicksAndRejections (node:internal/process/task_queues:105:5)