mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +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(
|
||||
@ -24,11 +23,9 @@ module(
|
||||
/>
|
||||
`);
|
||||
|
||||
assert.true(
|
||||
query(".chat-modal-move-message-to-channel").innerHTML.includes(
|
||||
"<script>someeviltitle</script>"
|
||||
)
|
||||
);
|
||||
assert
|
||||
.dom(".chat-modal-move-message-to-channel")
|
||||
.includesHtml("<script>someeviltitle</script>");
|
||||
});
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user