Skip to content

Commit 6252412

Browse files
chore: generate
1 parent c2609cb commit 6252412

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/opencode/test/agent/agent.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ test("explore agent asks for external directories and allows whitelisted externa
9494
expect(explore).toBeDefined()
9595
expect(Permission.evaluate("external_directory", "/some/other/path", explore!.permission).action).toBe("ask")
9696
expect(Permission.evaluate("external_directory", Truncate.GLOB, explore!.permission).action).toBe("allow")
97-
expect(Permission.evaluate("external_directory", path.join(Global.Path.tmp, "agent-work"), explore!.permission).action).toBe(
98-
"allow",
99-
)
97+
expect(
98+
Permission.evaluate("external_directory", path.join(Global.Path.tmp, "agent-work"), explore!.permission).action,
99+
).toBe("allow")
100100
},
101101
})
102102
})
@@ -525,9 +525,9 @@ test("global tmp directory children are allowed for external_directory", async (
525525
directory: tmp.path,
526526
fn: async () => {
527527
const build = await load(tmp.path, (svc) => svc.get("build"))
528-
expect(Permission.evaluate("external_directory", path.join(Global.Path.tmp, "scratch"), build!.permission).action).toBe(
529-
"allow",
530-
)
528+
expect(
529+
Permission.evaluate("external_directory", path.join(Global.Path.tmp, "scratch"), build!.permission).action,
530+
).toBe("allow")
531531
expect(Permission.evaluate("external_directory", "/some/other/path", build!.permission).action).toBe("ask")
532532
},
533533
})

0 commit comments

Comments
 (0)