mirror of https://github.com/openclaw/openclaw.git
test(core): use lightweight clear in cron, claude runner, and telegram delivery specs
This commit is contained in:
parent
902544cf2d
commit
2d2e1c2403
|
|
@ -74,7 +74,7 @@ async function waitForCalls(mockFn: { mock: { calls: unknown[][] } }, count: num
|
|||
|
||||
describe("runClaudeCliAgent", () => {
|
||||
beforeEach(() => {
|
||||
mocks.spawn.mockReset();
|
||||
mocks.spawn.mockClear();
|
||||
});
|
||||
|
||||
it("starts a new session with --session-id when none is provided", async () => {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ describe("cron tool", () => {
|
|||
}
|
||||
|
||||
beforeEach(() => {
|
||||
callGatewayMock.mockReset();
|
||||
callGatewayMock.mockClear();
|
||||
callGatewayMock.mockResolvedValue({ ok: true });
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ function createSendMessageHarness(messageId = 4) {
|
|||
|
||||
describe("deliverReplies", () => {
|
||||
beforeEach(() => {
|
||||
loadWebMedia.mockReset();
|
||||
loadWebMedia.mockClear();
|
||||
});
|
||||
|
||||
it("skips audioAsVoice-only payloads without logging an error", async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue