mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-17 02:37:33 +00:00
test: dedupe cli utility mock read
This commit is contained in:
@@ -17,7 +17,7 @@ describe("waitForever", () => {
|
||||
try {
|
||||
const promise = waitForever();
|
||||
expect(setIntervalSpy).toHaveBeenCalledTimes(1);
|
||||
const [callback, delay] = setIntervalSpy.mock.calls.at(0) ?? [];
|
||||
const [callback, delay] = setIntervalSpy.mock.calls[0] ?? [];
|
||||
expect(typeof callback).toBe("function");
|
||||
expect(delay).toBe(1_000_000);
|
||||
expect(unref).toHaveBeenCalledTimes(1);
|
||||
|
||||
Reference in New Issue
Block a user