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

@ -6,7 +6,7 @@ componentTest("css editor", {
template: '{{ace-editor mode="css"}}',
test(assert) {
assert.expect(1);
assert.ok(this.$(".ace_editor").length, "it renders the ace editor");
assert.ok(find(".ace_editor").length, "it renders the ace editor");
}
});
@ -14,7 +14,7 @@ componentTest("html editor", {
template: '{{ace-editor mode="html" content="<b>wat</b>"}}',
test(assert) {
assert.expect(1);
assert.ok(this.$(".ace_editor").length, "it renders the ace editor");
assert.ok(find(".ace_editor").length, "it renders the ace editor");
}
});
@ -22,7 +22,7 @@ componentTest("sql editor", {
template: '{{ace-editor mode="sql" content="SELECT * FROM users"}}',
test(assert) {
assert.expect(1);
assert.ok(this.$(".ace_editor").length, "it renders the ace editor");
assert.ok(find(".ace_editor").length, "it renders the ace editor");
}
});
@ -30,7 +30,7 @@ componentTest("disabled editor", {
template:
'{{ace-editor mode="sql" content="SELECT * FROM users" disabled=true}}',
test(assert) {
const $ace = this.$(".ace_editor");
const $ace = find(".ace_editor");
assert.expect(3);
assert.ok($ace.length, "it renders the ace editor");
assert.equal(