Skip to content

Commit 3ee0663

Browse files
chore: address claude comments
1 parent 3143c6b commit 3ee0663

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/unit/services/orchestrator/jobs.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,12 @@ describe('JobService Unit Tests', () => {
253253
).rejects.toThrow('id is required for getById');
254254
});
255255

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+
256262
it('should handle API errors', async () => {
257263
const error = createMockError(JOB_TEST_CONSTANTS.ERROR_JOB_NOT_FOUND);
258264
mockApiClient.get.mockRejectedValueOnce(error);

0 commit comments

Comments
 (0)