import { describe, expect, it } from "vitest"; import { isSingleEmoji } from "./reaction"; describe("commission reactions", () => { it("accepts emoji outside the old six choices, including sequences", () => { for (const emoji of ["๐Ÿ”ฅ", "๐Ÿ‡น๐Ÿ‡ญ", "๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ", "1๏ธโƒฃ"]) expect(isSingleEmoji(emoji)).toBe(true); }); it("rejects text and multiple reactions", () => { for (const value of ["", "hello", "1", "๐Ÿ”ฅ๐Ÿ”ฅ", "๐Ÿ”ฅ hello"]) expect(isSingleEmoji(value)).toBe(false); }); });