DEV: uses find() helper instead of this.$() in js tests (#7062)

This commit is contained in:
Joffrey JAFFEUX
2019-02-25 16:04:55 +01:00
committed by GitHub
parent c0dd171cf1
commit 5952a6c0ad
22 changed files with 332 additions and 318 deletions

View File

@ -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"
);