mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-13 11:39:41 +03:00
test(core): update grep error assertion
This commit is contained in:
@@ -214,7 +214,7 @@ describe("search tools", () => {
|
||||
status: "error",
|
||||
error: { type: "tool.execution" },
|
||||
})
|
||||
if (result.status !== "error") return
|
||||
if (result.status !== "error" || !result.error) return
|
||||
expect(result.error.message).toStartWith("Invalid regex pattern:")
|
||||
expect(result.error.message).toContain("unclosed character class")
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user