mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 15:20:45 +00:00
test: assert sandbox mutation helper script
This commit is contained in:
@@ -116,7 +116,9 @@ describe("sandbox fs bridge local backend e2e", () => {
|
||||
await expect(
|
||||
fs.readFile(path.join(workspaceDir, "nested", "hello.txt"), "utf8"),
|
||||
).resolves.toBe("from-backend");
|
||||
expect(scripts.some((script) => script.includes("operation = sys.argv[1]"))).toBe(true);
|
||||
expect(scripts).toEqual(
|
||||
expect.arrayContaining([expect.stringContaining("operation = sys.argv[1]")]),
|
||||
);
|
||||
} finally {
|
||||
await fs.rm(stateDir, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user