18 lines
574 B
JavaScript
18 lines
574 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";
|
|
|
|
module("Discourse Chat | Component | chat-user-info", function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test("avatar and name", async function (assert) {
|
|
this.set("user", this.currentUser);
|
|
|
|
await render(hbs`<ChatUserInfo @user={{this.user}} />`);
|
|
|
|
assert.dom().containsText(this.user.username);
|
|
assert.dom().containsText(this.user.name);
|
|
});
|
|
});
|