unit test fixes + error refactor
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 10m20s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 10m20s
This commit is contained in:
@@ -76,7 +76,7 @@ describe('Admin System Routes (/api/admin/system)', () => {
|
||||
vi.mocked(clearGeocodeCache).mockRejectedValue(new Error('Redis is down'));
|
||||
const response = await supertest(app).post('/api/admin/system/clear-geocode-cache');
|
||||
expect(response.status).toBe(500);
|
||||
expect(response.body.message).toBe('Redis is down');
|
||||
expect(response.body.message).toContain('Redis is down');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user