fix ing the mock mock mock !
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 1h4m27s

This commit is contained in:
2025-12-20 11:50:21 -08:00
parent 74ed4d2d3d
commit bf4646fbe5
8 changed files with 124 additions and 16 deletions

View File

@@ -177,7 +177,7 @@ describe('AI Routes (/api/ai)', () => {
await supertest(authenticatedApp).post('/api/ai/upload-and-process').field('checksum', 'addr-checksum').attach('flyerFile', imagePath);
// Assert
expect(vi.mocked(flyerQueue.add).mock.calls[0][1].userProfileAddress).toBe('123 Main St, Anytown, CA, 12345, USA');
expect(vi.mocked(flyerQueue.add).mock.calls[0][1].userProfileAddress).toBe('123 Pacific St, Anytown, BC, V8T 1A1, CA');
});
});