mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:18:28 +00:00
test(channels): use lightweight clears in probe and reaction setup
This commit is contained in:
@@ -18,15 +18,15 @@ vi.mock("./client.js", () => ({
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
detectBinaryMock.mockReset().mockResolvedValue(true);
|
||||
runCommandWithTimeoutMock.mockReset().mockResolvedValue({
|
||||
detectBinaryMock.mockClear().mockResolvedValue(true);
|
||||
runCommandWithTimeoutMock.mockClear().mockResolvedValue({
|
||||
stdout: "",
|
||||
stderr: 'unknown command "rpc" for "imsg"',
|
||||
code: 1,
|
||||
signal: null,
|
||||
killed: false,
|
||||
});
|
||||
createIMessageRpcClientMock.mockReset();
|
||||
createIMessageRpcClientMock.mockClear();
|
||||
});
|
||||
|
||||
describe("probeIMessage", () => {
|
||||
|
||||
Reference in New Issue
Block a user