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,21 +1,28 @@
|
||||
import componentTest from 'helpers/component-test';
|
||||
import componentTest from "helpers/component-test";
|
||||
|
||||
moduleForComponent('d-icon', {integration: true});
|
||||
moduleForComponent("d-icon", { integration: true });
|
||||
|
||||
componentTest('default', {
|
||||
componentTest("default", {
|
||||
template: '{{d-icon "bars"}}',
|
||||
|
||||
test(assert) {
|
||||
const html = this.$().html().trim();
|
||||
const html = this.$()
|
||||
.html()
|
||||
.trim();
|
||||
assert.equal(html, '<i class="fa fa-bars d-icon d-icon-bars"></i>');
|
||||
}
|
||||
});
|
||||
|
||||
componentTest('with replacement', {
|
||||
componentTest("with replacement", {
|
||||
template: '{{d-icon "d-watching"}}',
|
||||
|
||||
test(assert) {
|
||||
const html = this.$().html().trim();
|
||||
assert.equal(html, '<i class="fa fa-exclamation-circle d-icon d-icon-d-watching"></i>');
|
||||
const html = this.$()
|
||||
.html()
|
||||
.trim();
|
||||
assert.equal(
|
||||
html,
|
||||
'<i class="fa fa-exclamation-circle d-icon d-icon-d-watching"></i>'
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user