discourse/test/javascripts/components/d-icon-test.js.es6
Sam 42572ff138 Revert font awesome 5 changes
We are still pushing ahead on this 100% just need a bit longer to prepare
all plugins
2018-11-08 16:12:18 +11:00

29 lines
589 B
JavaScript

import componentTest from "helpers/component-test";
moduleForComponent("d-icon", { integration: true });
componentTest("default", {
template: '{{d-icon "bars"}}',
test(assert) {
const html = this.$()
.html()
.trim();
assert.equal(html, '<i class="fa fa-bars d-icon d-icon-bars"></i>');
}
});
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>'
);
}
});