mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 13:30:49 +00:00
test: tighten owner only gating assertion
This commit is contained in:
@@ -57,7 +57,7 @@ describe("owner-only tool gating", () => {
|
||||
it("restricts node-originated runs to the node-safe tool subset", () => {
|
||||
const tools = createOpenClawCodingTools({ messageProvider: "node", senderIsOwner: false });
|
||||
const toolNames = tools.map((tool) => tool.name);
|
||||
expect(toolNames).toEqual(expect.arrayContaining(["canvas"]));
|
||||
expect(toolNames).toContain("canvas");
|
||||
expect(toolNames).not.toContain("exec");
|
||||
expect(toolNames).not.toContain("read");
|
||||
expect(toolNames).not.toContain("write");
|
||||
|
||||
Reference in New Issue
Block a user