style: biome fixes

This commit is contained in:
Peter Steinberger
2026-01-12 00:32:43 +00:00
parent 720b9dd116
commit 9c8967ef5d
3 changed files with 20 additions and 12 deletions

View File

@@ -226,7 +226,7 @@ describe("isContextOverflowError", () => {
describe("isCompactionFailureError", () => {
it("matches compaction overflow failures", () => {
const samples = [
"Context overflow: Summarization failed: 400 {\"message\":\"prompt is too long\"}",
'Context overflow: Summarization failed: 400 {"message":"prompt is too long"}',
"auto-compaction failed due to context overflow",
"Compaction failed: prompt is too long",
];
@@ -236,9 +236,9 @@ describe("isCompactionFailureError", () => {
});
it("ignores non-compaction overflow errors", () => {
expect(
isCompactionFailureError("Context overflow: prompt too large"),
).toBe(false);
expect(isCompactionFailureError("Context overflow: prompt too large")).toBe(
false,
);
expect(isCompactionFailureError("rate limit exceeded")).toBe(false);
});
});