update unit tests and mocks

This commit is contained in:
Hazelnoot 2025-10-08 17:09:52 -04:00
parent 9b843181f8
commit effdea5658
11 changed files with 123 additions and 121 deletions

View file

@ -27,13 +27,12 @@ describe(SkRateLimiterService, () => {
beforeAll(() => {
mockTimeService = new GodOfTimeService();
mockEnvService = new MockEnvService();
mockRedis = new MockRedis(mockTimeService);
const fakeConfig = { host: 'example.com' } as unknown as Config;
mockInternalEventService = new MockInternalEventService(fakeConfig);
cacheManagementService = new CacheManagementService(mockRedis, mockTimeService, mockInternalEventService);
mockEnvService = new MockEnvService(cacheManagementService);
});
afterAll(() => {