mirror of https://github.com/openclaw/openclaw.git
test: drop subagent hook registration smokes
This commit is contained in:
parent
5e371fe875
commit
8076c78b2e
|
|
@ -185,14 +185,6 @@ describe("discord subagent hook handlers", () => {
|
|||
hookMocks.unbindThreadBindingsBySessionKey.mockClear();
|
||||
});
|
||||
|
||||
it("registers subagent hooks", () => {
|
||||
const handlers = registerHandlersForTest();
|
||||
expect(handlers.has("subagent_spawning")).toBe(true);
|
||||
expect(handlers.has("subagent_delivery_target")).toBe(true);
|
||||
expect(handlers.has("subagent_spawned")).toBe(false);
|
||||
expect(handlers.has("subagent_ended")).toBe(true);
|
||||
});
|
||||
|
||||
it("binds thread routing on subagent_spawning", async () => {
|
||||
const handlers = registerHandlersForTest();
|
||||
const handler = getRequiredHookHandler(handlers, "subagent_spawning");
|
||||
|
|
|
|||
|
|
@ -27,14 +27,6 @@ describe("feishu subagent hook handlers", () => {
|
|||
threadBindingTesting.resetFeishuThreadBindingsForTests();
|
||||
});
|
||||
|
||||
it("registers Feishu subagent hooks", () => {
|
||||
const handlers = registerHandlersForTest();
|
||||
expect(handlers.has("subagent_spawning")).toBe(true);
|
||||
expect(handlers.has("subagent_delivery_target")).toBe(true);
|
||||
expect(handlers.has("subagent_ended")).toBe(true);
|
||||
expect(handlers.has("subagent_spawned")).toBe(false);
|
||||
});
|
||||
|
||||
it("binds a Feishu DM conversation on subagent_spawning", async () => {
|
||||
const handlers = registerHandlersForTest();
|
||||
const handler = getRequiredHookHandler(handlers, "subagent_spawning");
|
||||
|
|
|
|||
Loading…
Reference in New Issue