mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Use the new hasHtml
/includesHtml
from qunit-dom (#29680)
This commit is contained in:
@ -3,7 +3,6 @@ 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 { query } from "discourse/tests/helpers/qunit-helpers";
|
||||
import ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";
|
||||
|
||||
module("Discourse Chat | Component | chat-thread-list-item", function (hooks) {
|
||||
@ -17,9 +16,8 @@ module("Discourse Chat | Component | chat-thread-list-item", function (hooks) {
|
||||
<Chat::ThreadList::Item @thread={{this.thread}} />
|
||||
`);
|
||||
|
||||
assert.equal(
|
||||
query(".chat-thread-list-item__title").innerHTML.trim(),
|
||||
"<style>body { background: red;}</style>"
|
||||
);
|
||||
assert
|
||||
.dom(".chat-thread-list-item__title")
|
||||
.hasHtml("<style>body { background: red;}</style>");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user