discourse/plugins/chat/test/javascripts/components/chat-emoji-avatar-test.js
David Taylor 48193767bf DEV: Sort imports
Automatically generated by `eslint --fix` to satisfy the updated configuration
2023-10-10 21:46:54 +01:00

22 lines
674 B
JavaScript

import { render } from "@ember/test-helpers";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
import { exists } from "discourse/tests/helpers/qunit-helpers";
module("Discourse Chat | Component | chat-emoji-avatar", function (hooks) {
setupRenderingTest(hooks);
test("uses an emoji as avatar", async function (assert) {
this.set("emoji", ":otter:");
await render(hbs`<ChatEmojiAvatar @emoji={{this.emoji}} />`);
assert.true(
exists(
`.chat-emoji-avatar .chat-emoji-avatar-container .emoji[title=otter]`
)
);
});
});