import { IMAGE_VERSION as v } from "pretty-text/emoji/version"; import { acceptance } from "helpers/qunit-helpers"; acceptance("Emoji", { loggedIn: true }); QUnit.test("emoji is cooked properly", async assert => { await visit("/t/internationalization-localization/280"); await click("#topic-footer-buttons .btn.create"); await fillIn(".d-editor-input", "this is an emoji :blonde_woman:"); assert.equal( find(".d-editor-preview:visible") .html() .trim(), `
this is an emoji
` ); }); QUnit.test("skin toned emoji is cooked properly", async assert => { await visit("/t/internationalization-localization/280"); await click("#topic-footer-buttons .btn.create"); await fillIn(".d-editor-input", "this is an emoji :blonde_woman:t5:"); assert.equal( find(".d-editor-preview:visible") .html() .trim(), `this is an emoji
` ); });