more test improvements
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 25m12s

This commit is contained in:
2026-01-03 14:57:35 -08:00
parent 780291303d
commit 7fb22cdd20
7 changed files with 36 additions and 9 deletions

View File

@@ -225,6 +225,7 @@ describe('AI Routes (/api/ai)', () => {
// Act
await supertest(authenticatedApp)
.post('/api/ai/upload-and-process')
.set('Authorization', 'Bearer mock-token') // Add this to satisfy the header check in the route
.field('checksum', validChecksum)
.attach('flyerFile', imagePath);
@@ -260,6 +261,7 @@ describe('AI Routes (/api/ai)', () => {
// Act
await supertest(authenticatedApp)
.post('/api/ai/upload-and-process')
.set('Authorization', 'Bearer mock-token') // Add this to satisfy the header check in the route
.field('checksum', validChecksum)
.attach('flyerFile', imagePath);