mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 13:14:03 +00:00
test(discord): accept delivery origin on spawn
This commit is contained in:
@@ -339,7 +339,16 @@ describe("discord subagent hook handlers", () => {
|
||||
});
|
||||
|
||||
expect(hookMocks.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1);
|
||||
expect(result).toStrictEqual({ status: "ok", threadBindingReady: true });
|
||||
expect(result).toMatchObject({
|
||||
status: "ok",
|
||||
threadBindingReady: true,
|
||||
deliveryOrigin: {
|
||||
channel: "discord",
|
||||
accountId: "work",
|
||||
to: "channel:thread-1",
|
||||
threadId: "thread-1",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it("defaults thread-bound subagent spawn to enabled when unset", async () => {
|
||||
@@ -352,7 +361,16 @@ describe("discord subagent hook handlers", () => {
|
||||
});
|
||||
|
||||
expect(hookMocks.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1);
|
||||
expect(result).toStrictEqual({ status: "ok", threadBindingReady: true });
|
||||
expect(result).toMatchObject({
|
||||
status: "ok",
|
||||
threadBindingReady: true,
|
||||
deliveryOrigin: {
|
||||
channel: "discord",
|
||||
accountId: "work",
|
||||
to: "channel:thread-1",
|
||||
threadId: "thread-1",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it("no-ops when thread binding is requested on non-discord channel", async () => {
|
||||
|
||||
Reference in New Issue
Block a user