test: tighten owner only gating assertion · openclaw/openclaw@9e5c263
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -57,7 +57,7 @@ describe("owner-only tool gating", () => {
|
57 | 57 | it("restricts node-originated runs to the node-safe tool subset", () => { |
58 | 58 | const tools = createOpenClawCodingTools({ messageProvider: "node", senderIsOwner: false }); |
59 | 59 | const toolNames = tools.map((tool) => tool.name); |
60 | | -expect(toolNames).toEqual(expect.arrayContaining(["canvas"])); |
| 60 | +expect(toolNames).toContain("canvas"); |
61 | 61 | expect(toolNames).not.toContain("exec"); |
62 | 62 | expect(toolNames).not.toContain("read"); |
63 | 63 | expect(toolNames).not.toContain("write"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。