feat: thread iconSize through jobRepository

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-31 10:13:15 +02:00
co-authored by Claude Sonnet 5
parent 1ff660a3d2
commit be43eac13a
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -63,6 +63,7 @@ describe('jobRepository', () => {
expect(job.errorMessage).toBeNull();
expect(job.cleanedAt).toBeNull();
expect(job.quality).toBeNull();
expect(job.iconSize).toBeNull();
});
it('stores and retrieves a numeric quality value', async () => {
@@ -72,6 +73,16 @@ describe('jobRepository', () => {
expect(job.quality).toBe(82);
});
it('stores and retrieves a numeric iconSize value', async () => {
await createJob(
prisma,
baseJob({ uuid: '77777777-7777-4777-8777-777777777777', targetFormat: 'ico', iconSize: 48 })
);
const job = await getJobByUuid(prisma, '77777777-7777-4777-8777-777777777777');
expect(job.iconSize).toBe(48);
});
it('returns null for an unknown uuid', async () => {
const job = await getJobByUuid(prisma, '22222222-2222-4222-8222-222222222222');
expect(job).toBeNull();