Remove MockGlobalStorage

This commit is contained in:
Robert
2023-05-31 16:21:28 +01:00
parent 9b84e0f831
commit 50c46b603a

View File

@@ -18,7 +18,7 @@ describe("Invocation rate limiter", () => {
func: () => Promise<T>, func: () => Promise<T>,
): InvocationRateLimiter<T> { ): InvocationRateLimiter<T> {
return new InvocationRateLimiter( return new InvocationRateLimiter(
new MockGlobalStorage(), new MockMemento(),
funcIdentifier, funcIdentifier,
func, func,
(s) => createDate(s), (s) => createDate(s),
@@ -54,12 +54,6 @@ describe("Invocation rate limiter", () => {
} }
} }
class MockGlobalStorage extends MockMemento {
public setKeysForSync(_keys: string[]): void {
return;
}
}
it("initially invokes function", async () => { it("initially invokes function", async () => {
let numTimesFuncCalled = 0; let numTimesFuncCalled = 0;
const invocationRateLimiter = createInvocationRateLimiter( const invocationRateLimiter = createInvocationRateLimiter(