2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00
discourse/test/javascripts/components/d-icon-test.js.es6

22 lines
541 B
Text
Raw Normal View History

2017-11-23 18:15:37 +01:00
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>');
}
});