mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 19:01:47 +03:00
chore (tests): format apply-patch e2e test
This commit is contained in:
@@ -181,7 +181,9 @@ describe("applyPatch", () => {
|
|||||||
*** End Patch`;
|
*** End Patch`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await expect(applyPatch(patch, { cwd: dir })).rejects.toThrow(/Symlink escapes sandbox root/);
|
await expect(applyPatch(patch, { cwd: dir })).rejects.toThrow(
|
||||||
|
/Symlink escapes sandbox root/,
|
||||||
|
);
|
||||||
const stillThere = await fs.readFile(outsideFile, "utf8");
|
const stillThere = await fs.readFile(outsideFile, "utf8");
|
||||||
expect(stillThere).toBe("victim\n");
|
expect(stillThere).toBe("victim\n");
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user