test: add supplementary unicode text-as-codepoints test

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yunfei He
2026-05-27 14:59:09 +08:00
parent fa919ef166
commit 935f998d15
@@ -226,6 +226,12 @@ describe("kitty protocol - text and unicode", () => {
expect(result.isKittyProtocol).toBe(true);
});
test("text-as-codepoints with supplementary unicode", () => {
const result = parseKeypress(kittyKey(97, 1, 1, [128_512]));
expect(result.text).toBe("\u{1F600}");
expect(result.isKittyProtocol).toBe(true);
});
test("text defaults to character from codepoint", () => {
const result = parseKeypress(kittyKey(97));
expect(result.text).toBe("a");