test: update GDPR export test for dashed jobId — companion to F3

The test asserted the old `gdpr-export:${id}` shape that BullMQ rejects.
Mirrors the production fix in 7da3c5b.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-14 22:50:51 +02:00
parent 025648c40b
commit f85948488d

View File

@@ -166,7 +166,8 @@ describe('requestGdprExport', () => {
expect(add).toHaveBeenCalledWith(
'gdpr-export',
expect.objectContaining({ exportId: row.id, emailToClient: true }),
expect.objectContaining({ jobId: `gdpr-export:${row.id}` }),
// F3: BullMQ 5.x rejects colons in custom job IDs — switched to dash.
expect.objectContaining({ jobId: `gdpr-export-${row.id}` }),
);
// Cleanup the mock so other tests don't see a stubbed queue.