Fix a type error in the hint truncation test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas Winther
2026-10-29 21:43:19 +01:00
co-authored by Claude Opus 5.5
parent e6de097cfd
commit 87617bef4c
+1 -1
View File
@@ -99,7 +99,7 @@ describe("fitHintToBudget (D-WS2a truncation rule)", () => {
expect(` ${hint}`.startsWith(kept)).toBe(true);
// Ends on a whole term: the next character of the hint is a separator.
expect(kept.endsWith(",")).toBe(false);
expect([",", " "]).toContain(` ${hint}`[kept.length]);
expect([",", " "]).toContain(` ${hint}`.charAt(kept.length));
});
test("is deterministic", () => {