We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3143c6b commit 3ee0663Copy full SHA for 3ee0663
1 file changed
tests/unit/services/orchestrator/jobs.test.ts
@@ -253,6 +253,12 @@ describe('JobService Unit Tests', () => {
253
).rejects.toThrow('id is required for getById');
254
});
255
256
+ it('should throw validation error when folderId is missing', async () => {
257
+ await expect(
258
+ jobService.getById(JOB_TEST_CONSTANTS.JOB_KEY, 0)
259
+ ).rejects.toThrow('folderId is required for getById');
260
+ });
261
+
262
it('should handle API errors', async () => {
263
const error = createMockError(JOB_TEST_CONSTANTS.ERROR_JOB_NOT_FOUND);
264
mockApiClient.get.mockRejectedValueOnce(error);
0 commit comments