mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 04:48:15 +00:00
test: use synthetic plugin channel fixtures
This commit is contained in:
parent
97e528ed54
commit
6bb6cfc68e
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue