Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Spell the replacement character as an escape in the test

hh123456tw4847221b2e25
diff --git a/server/compaction-summary.test.ts b/server/compaction-summary.test.ts
index 9039eebb69..5989fef5de 100644
--- a/server/compaction-summary.test.ts
+++ b/server/compaction-summary.test.ts
@@ -93,7 +93,7 @@ it.each([512, 3_200, MAX_SUMMARY_BYTES])("keeps multibyte summaries valid and wi
], maxBytes);
expect(Buffer.byteLength(summary)).toBeLessThanOrEqual(maxBytes);
expect(summary).toContain("最新訊息🙂");
- expect(summary).not.toContain("�");
+ expect(summary).not.toContain("\uFFFD");
});
it("works without a model helper", async () => {