mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
DEV: uses find() helper instead of this.$() in js tests (#7062)
This commit is contained in:
@ -11,7 +11,7 @@ componentTest("default theme", {
|
||||
|
||||
test(assert) {
|
||||
assert.expect(1);
|
||||
assert.equal(this.$(".d-icon-check").length, 1, "shows default theme icon");
|
||||
assert.equal(find(".d-icon-check").length, 1, "shows default theme icon");
|
||||
}
|
||||
});
|
||||
|
||||
@ -26,7 +26,7 @@ componentTest("pending updates", {
|
||||
|
||||
test(assert) {
|
||||
assert.expect(1);
|
||||
assert.equal(this.$(".d-icon-sync").length, 1, "shows pending update icon");
|
||||
assert.equal(find(".d-icon-sync").length, 1, "shows pending update icon");
|
||||
}
|
||||
});
|
||||
|
||||
@ -45,7 +45,7 @@ componentTest("broken theme", {
|
||||
test(assert) {
|
||||
assert.expect(1);
|
||||
assert.equal(
|
||||
this.$(".d-icon-exclamation-circle").length,
|
||||
find(".d-icon-exclamation-circle").length,
|
||||
1,
|
||||
"shows broken theme icon"
|
||||
);
|
||||
|
Reference in New Issue
Block a user