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",
|
status: "error",
|
||||||
error: { type: "tool.execution" },
|
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).toStartWith("Invalid regex pattern:")
|
||||||
expect(result.error.message).toContain("unclosed character class")
|
expect(result.error.message).toContain("unclosed character class")
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue