test: assert sandbox mutation helper script · openclaw/openclaw@06d34c5
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -116,7 +116,9 @@ describe("sandbox fs bridge local backend e2e", () => {
|
116 | 116 | await expect( |
117 | 117 | fs.readFile(path.join(workspaceDir, "nested", "hello.txt"), "utf8"), |
118 | 118 | ).resolves.toBe("from-backend"); |
119 | | -expect(scripts.some((script) => script.includes("operation = sys.argv[1]"))).toBe(true); |
| 119 | +expect(scripts).toEqual( |
| 120 | +expect.arrayContaining([expect.stringContaining("operation = sys.argv[1]")]), |
| 121 | +); |
120 | 122 | } finally { |
121 | 123 | await fs.rm(stateDir, { recursive: true, force: true }); |
122 | 124 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。