import { getOwner } from "@ember/owner";
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 ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";
module("Discourse Chat | Component | chat-thread-header", function (hooks) {
setupRenderingTest(hooks);
test("it safely renders title", async function (assert) {
const title = "";
this.thread = new ChatFabricators(getOwner(this)).thread({ title });
await render(hbs`
`);
assert
.dom(".c-navbar__title")
.includesHtml("<style>body { background: red;}</style>");
});
});