mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 12:30:24 +00:00
test(core): trim redundant test resets and use mockClear
This commit is contained in:
@@ -22,7 +22,7 @@ import { stageSandboxMedia } from "./reply/stage-sandbox-media.js";
|
||||
|
||||
afterEach(() => {
|
||||
vi.restoreAllMocks();
|
||||
childProcessMocks.spawn.mockReset();
|
||||
childProcessMocks.spawn.mockClear();
|
||||
});
|
||||
|
||||
describe("stageSandboxMedia", () => {
|
||||
|
||||
@@ -17,8 +17,6 @@ const { handleInlineActions } = await import("./get-reply-inline-actions.js");
|
||||
|
||||
describe("handleInlineActions", () => {
|
||||
it("skips whatsapp replies when config is empty and From !== To", async () => {
|
||||
handleCommandsMock.mockReset();
|
||||
|
||||
const typing: TypingController = {
|
||||
onReplyStart: async () => {},
|
||||
startTypingLoop: async () => {},
|
||||
|
||||
Reference in New Issue
Block a user