mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-03 08:43:32 +00:00
test(core): update grep error assertion
This commit is contained in:
parent
5592f5225b
commit
863645c671
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue