Upgrade emojibase-bindings and remove local handling of emoticon variations (#127)
* Updgrade emojibase-bindings and remove local handling of emoticon variations * bump bindings to fix issue of mission emojis with version == 0 * update lockfile * test emoji variation in RTE
This commit is contained in:
parent
3a59556749
commit
c71dc6b0f8
6 changed files with 34 additions and 19 deletions
|
@ -63,6 +63,7 @@ describe("BasicMessageComposer", () => {
|
|||
{ before: ":-D", after: "😄" },
|
||||
{ before: ":D", after: "😄" },
|
||||
{ before: ":3", after: "😽" },
|
||||
{ before: "=-]", after: "🙂" },
|
||||
];
|
||||
const input = screen.getByRole("textbox");
|
||||
|
||||
|
|
|
@ -435,6 +435,18 @@ describe("WysiwygComposer", () => {
|
|||
inputType: "insertText",
|
||||
});
|
||||
|
||||
await waitFor(() => expect(onChange).toHaveBeenNthCalledWith(3, expect.stringContaining("😛")));
|
||||
});
|
||||
it("typing a space to trigger an emoji varitation replacement", async () => {
|
||||
fireEvent.input(screen.getByRole("textbox"), {
|
||||
data: ":-P",
|
||||
inputType: "insertText",
|
||||
});
|
||||
fireEvent.input(screen.getByRole("textbox"), {
|
||||
data: " ",
|
||||
inputType: "insertText",
|
||||
});
|
||||
|
||||
await waitFor(() => expect(onChange).toHaveBeenNthCalledWith(3, expect.stringContaining("😛")));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue