Port changes from enterprise codebase

This commit is contained in:
Tom Moor
2023-09-16 08:36:22 -04:00
parent 3582a6a0a2
commit 4fa3270f4e
3 changed files with 42 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
import { getNameFromEmoji, getEmojiFromName } from "./emoji";
describe("getNameFromEmoji", () => {
it("returns the correct shortcode", () => {
expect(getNameFromEmoji("🤔")).toBe("thinking_face");
});
});
describe("getEmojiFromName", () => {
it("returns the correct native character", () => {
expect(getEmojiFromName("thinking_face")).toBe("🤔");
});
});