Google Maps Bug

This commit is contained in:
Eric Gullickson
2025-11-08 12:17:29 -06:00
parent efbe9ba3c0
commit bb4a356b9e
39 changed files with 1175 additions and 449 deletions

View File

@@ -315,6 +315,7 @@ describe('Admin Catalog Integration Tests', () => {
it('should invalidate cache after create operation', async () => {
// Set a cache value
await redis.set('mvp:platform:vehicle-data:makes:2024', JSON.stringify([]), 3600);
await redis.set('mvp:platform:years', JSON.stringify([2024]), 3600);
// Create make (should invalidate cache)
await app.inject({
@@ -324,12 +325,11 @@ describe('Admin Catalog Integration Tests', () => {
payload: { name: 'Honda' }
});
// Check if cache was invalidated (implementation depends on invalidateVehicleData)
// Note: Current implementation logs warning but doesn't actually invalidate
// This test documents expected behavior
const cacheValue = await redis.get('mvp:platform:vehicle-data:makes:2024');
// Cache should be invalidated or remain (depending on implementation)
expect(cacheValue).toBeDefined();
const yearsCacheValue = await redis.get('mvp:platform:years');
expect(cacheValue).toBeNull();
expect(yearsCacheValue).toBeNull();
});
});