mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 16:59:22 +00:00
FIX: Raw jQuery usage in tests
This commit is contained in:
parent
71b0400501
commit
a78b256e8b
@ -3,10 +3,10 @@ import componentTest from "helpers/component-test";
|
||||
moduleForComponent("d-icon", { integration: true });
|
||||
|
||||
componentTest("default", {
|
||||
template: '{{d-icon "bars"}}',
|
||||
template: '<div class="test">{{d-icon "bars"}}</div>',
|
||||
|
||||
test(assert) {
|
||||
const html = this.$()
|
||||
const html = find(".test")
|
||||
.html()
|
||||
.trim();
|
||||
assert.equal(
|
||||
@ -17,10 +17,10 @@ componentTest("default", {
|
||||
});
|
||||
|
||||
componentTest("with replacement", {
|
||||
template: '{{d-icon "d-watching"}}',
|
||||
template: '<div class="test">{{d-icon "d-watching"}}</div>',
|
||||
|
||||
test(assert) {
|
||||
const html = this.$()
|
||||
const html = find(".test")
|
||||
.html()
|
||||
.trim();
|
||||
assert.equal(
|
||||
|
Loading…
x
Reference in New Issue
Block a user