mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: introduces prettier for es6 files
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import componentTest from 'helpers/component-test';
|
||||
import componentTest from "helpers/component-test";
|
||||
|
||||
moduleForComponent("text-field", { integration: true });
|
||||
|
||||
@ -6,7 +6,7 @@ componentTest("renders correctly with no properties set", {
|
||||
template: `{{text-field}}`,
|
||||
|
||||
test(assert) {
|
||||
assert.ok(this.$('input[type=text]').length);
|
||||
assert.ok(this.$("input[type=text]").length);
|
||||
}
|
||||
});
|
||||
|
||||
@ -18,8 +18,8 @@ componentTest("support a placeholder", {
|
||||
},
|
||||
|
||||
test(assert) {
|
||||
assert.ok(this.$('input[type=text]').length);
|
||||
assert.equal(this.$('input').prop('placeholder'), 'placeholder.i18n.key');
|
||||
assert.ok(this.$("input[type=text]").length);
|
||||
assert.equal(this.$("input").prop("placeholder"), "placeholder.i18n.key");
|
||||
}
|
||||
});
|
||||
|
||||
@ -30,7 +30,7 @@ componentTest("sets the dir attribute to ltr for Hebrew text", {
|
||||
},
|
||||
|
||||
test(assert) {
|
||||
assert.equal(this.$('input').attr('dir'), 'rtl');
|
||||
assert.equal(this.$("input").attr("dir"), "rtl");
|
||||
}
|
||||
});
|
||||
|
||||
@ -41,8 +41,6 @@ componentTest("sets the dir attribute to ltr for English text", {
|
||||
},
|
||||
|
||||
test(assert) {
|
||||
assert.equal(this.$('input').attr('dir'), 'ltr');
|
||||
assert.equal(this.$("input").attr("dir"), "ltr");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user