mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 04:10:44 +00:00
test: tighten before tool call extension assertion
This commit is contained in:
@@ -503,7 +503,11 @@ describe("before_tool_call hook integration for client tools", () => {
|
||||
namespace: "policy",
|
||||
value: { gate: "client" },
|
||||
}),
|
||||
).resolves.toMatchObject({ ok: true });
|
||||
).resolves.toEqual({
|
||||
ok: true,
|
||||
key: "agent:main:client",
|
||||
value: { gate: "client" },
|
||||
});
|
||||
|
||||
const [tool] = toClientToolDefinitions(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user