Remove MockGlobalStorage
This commit is contained in:
@@ -18,7 +18,7 @@ describe("Invocation rate limiter", () => {
|
||||
func: () => Promise<T>,
|
||||
): InvocationRateLimiter<T> {
|
||||
return new InvocationRateLimiter(
|
||||
new MockGlobalStorage(),
|
||||
new MockMemento(),
|
||||
funcIdentifier,
|
||||
func,
|
||||
(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 () => {
|
||||
let numTimesFuncCalled = 0;
|
||||
const invocationRateLimiter = createInvocationRateLimiter(
|
||||
|
||||
Reference in New Issue
Block a user