update unit tests and mocks
This commit is contained in:
parent
9b843181f8
commit
effdea5658
11 changed files with 123 additions and 121 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue