mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:20:43 +00:00
test: use synthetic plugin channel fixtures
This commit is contained in:
@@ -62,7 +62,7 @@ describe("createChannelPairingChallengeIssuer", () => {
|
||||
const upsertPairingRequest = vi.fn(async () => ({ code: "654321", created: true }));
|
||||
const { replies, sendPairingReply } = createReplyCollector();
|
||||
const issueChallenge = createChannelPairingChallengeIssuer({
|
||||
channel: "signal",
|
||||
channel: "quietchat",
|
||||
upsertPairingRequest,
|
||||
});
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { PluginHookBeforeToolCallResult, PluginHookMessageSendingResult } f
|
||||
const toolEvent = { toolName: "bash", params: { command: "echo hello" } };
|
||||
const toolCtx = { toolName: "bash" };
|
||||
const messageEvent = { to: "user-1", content: "hello" };
|
||||
const messageCtx = { channelId: "telegram" };
|
||||
const messageCtx = { channelId: "forum" };
|
||||
|
||||
async function runBeforeToolCallWithHooks(
|
||||
registry: PluginRegistry,
|
||||
|
||||
Reference in New Issue
Block a user