All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 50s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
469 B
TypeScript
12 lines
469 B
TypeScript
import "../setup.ts";
|
|
import { assertEquals, assertMatch } from "@std/assert";
|
|
import { emojiToCodepoint } from "../../lib/site-icons.ts";
|
|
|
|
Deno.test("emojiToCodepoint: Twemoji file naming", () => {
|
|
assertEquals(emojiToCodepoint("🚚"), "1f69a");
|
|
// A lone variation selector is dropped…
|
|
assertEquals(emojiToCodepoint("❤️"), "2764");
|
|
// …but kept inside a ZWJ sequence.
|
|
assertMatch(emojiToCodepoint("🏳️🌈"), /^1f3f3-fe0f-200d-1f308$/);
|
|
});
|