mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Raw jQuery usage in tests
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user