make timeoutMs a settable property

This commit is contained in:
2025-04-11 16:57:47 -07:00
parent 6cc20a4a6a
commit 44095e711a
2 changed files with 7 additions and 18 deletions

View File

@@ -48,8 +48,8 @@ describe("TimedApiBasedRepositoryLoader", () => {
expect(spy).toHaveBeenCalled();
});
expect(setTimeout).toHaveBeenCalledWith(expect.any(Function), timedLoader.timeout);
expect(timedLoader.timeout).not.toBeUndefined();
expect(setTimeout).toHaveBeenCalledWith(expect.any(Function), timedLoader.timeoutMs);
expect(timedLoader.timeoutMs).not.toBeUndefined();
});
it("does nothing if timer is already running", async () => {