mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 04:58:09 +08:00
DEV: Move discourse-chat
to the core repo. (#18776)
As part of this move, we are also renaming `discourse-chat` to `chat`.
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
import componentTest, {
|
||||
setupRenderingTest,
|
||||
} from "discourse/tests/helpers/component-test";
|
||||
import { exists } from "discourse/tests/helpers/qunit-helpers";
|
||||
import hbs from "htmlbars-inline-precompile";
|
||||
import { module } from "qunit";
|
||||
|
||||
module("Discourse Chat | Component | chat-emoji-avatar", function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
componentTest("uses an emoji as avatar", {
|
||||
template: hbs`{{chat-emoji-avatar emoji=emoji}}`,
|
||||
|
||||
async beforeEach() {
|
||||
this.set("emoji", ":otter:");
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
assert.ok(
|
||||
exists(
|
||||
`.chat-emoji-avatar .chat-emoji-avatar-container .emoji[title=otter]`
|
||||
)
|
||||
);
|
||||
},
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user