feat : update
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user