mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:01:24 +00:00
test(core): trim redundant mock resets in heartbeat suites
This commit is contained in:
@@ -760,7 +760,7 @@ describe("runHeartbeatOnce", () => {
|
||||
}),
|
||||
);
|
||||
|
||||
replySpy.mockReset();
|
||||
replySpy.mockClear();
|
||||
replySpy.mockResolvedValue([{ text: testCase.message }]);
|
||||
const sendWhatsApp = vi
|
||||
.fn<NonNullable<HeartbeatDeps["sendWhatsApp"]>>()
|
||||
@@ -896,7 +896,7 @@ describe("runHeartbeatOnce", () => {
|
||||
}),
|
||||
);
|
||||
|
||||
replySpy.mockReset();
|
||||
replySpy.mockClear();
|
||||
replySpy.mockResolvedValue(testCase.replies);
|
||||
const sendWhatsApp = vi
|
||||
.fn<NonNullable<HeartbeatDeps["sendWhatsApp"]>>()
|
||||
|
||||
Reference in New Issue
Block a user