mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:10:42 +00:00
test: mock health status config boundaries
This commit is contained in:
@@ -23,6 +23,10 @@ vi.mock("../gateway/call.js", () => ({
|
||||
Reflect.apply(buildGatewayConnectionDetailsMock, undefined, args),
|
||||
}));
|
||||
|
||||
vi.mock("../config/config.js", () => ({
|
||||
readBestEffortConfig: vi.fn(async () => ({})),
|
||||
}));
|
||||
|
||||
vi.mock("../channels/plugins/index.js", () => {
|
||||
const whatsappPlugin = {
|
||||
id: "whatsapp",
|
||||
|
||||
@@ -7,6 +7,10 @@ vi.mock("../channels/plugins/index.js", () => ({
|
||||
listChannelPlugins: () => pluginRegistry.list,
|
||||
}));
|
||||
|
||||
vi.mock("../channels/read-only-account-inspect.js", () => ({
|
||||
inspectReadOnlyChannelAccount: () => undefined,
|
||||
}));
|
||||
|
||||
import { resolveLinkChannelContext } from "./status.link-channel.js";
|
||||
|
||||
describe("resolveLinkChannelContext", () => {
|
||||
|
||||
Reference in New Issue
Block a user