test(codemode): drop leftover $codemode references (#36451)

This commit is contained in:
Aiden Cline
2026-07-11 14:15:11 -05:00
committed by GitHub
parent b9f39dd751
commit 75e8fd4da2
3 changed files with 9 additions and 22 deletions
+1 -3
View File
@@ -52,10 +52,8 @@ describe("Object.keys over tool references", () => {
expect(await value(`return Object.keys(tools.github.list_issues)`)).toEqual([])
})
test("search is a global built-in function, not a tools namespace", async () => {
test("search is a global built-in function", async () => {
expect(await value(`return typeof search`)).toBe("function")
const failure = await error(`return Object.keys(tools.$codemode)`)
expect(failure.kind).toBe("UnknownTool")
})
test("an unknown namespace is an UnknownTool error pointing at the discovery idioms", async () => {