[DRAFT] Restrict upload status changes #290
GitHub Actions / jest-github-action
failed
Nov 28, 2023 in 0s
Jest tests failed
Failed tests: 1/464. Failed suites: 1/103.
Details
● model/Sample › updateUploadStatus works correctly if valid params are passed
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
- "upload_status": "fileNotFound",
+ "upload_status": "features10x",
},
Number of calls: 1
61 |
62 | expect(mockSqlClient).toHaveBeenCalledWith({ sf: tableNames.SAMPLE_FILE });
> 63 | expect(mockSqlClient.update).toHaveBeenCalledWith({ upload_status: mockUploadStatus });
| ^
64 | expect(mockSqlClient.whereExists).toHaveBeenCalled();
65 |
66 | expect(mockSqlClient).toHaveBeenCalledWith({ sf_map: tableNames.SAMPLE_TO_SAMPLE_FILE_MAP });
at Object.<anonymous> (tests/api.v2/model/SampleFile.test.js:63:34)
Annotations
Check failure on line 54 in tests/api.v2/model/SampleFile.test.js
github-actions / jest-github-action
model/Sample > updateUploadStatus works correctly if valid params are passed
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
- "upload_status": "fileNotFound",
+ "upload_status": "features10x",
},
Number of calls: 1
at Object.<anonymous> (/home/runner/work/api/api/tests/api.v2/model/SampleFile.test.js:63:34)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Loading