Turn user avatars into a component

This allows us to add them anywhere in the app, and also to add more
features, like e.g. hover info boxes, links, and so on.
This commit is contained in:
2019-04-25 19:08:22 +01:00
parent 028391386b
commit 3c73ddd443
7 changed files with 34 additions and 6 deletions
@@ -0,0 +1,14 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | user-avatar', function(hooks) {
setupRenderingTest(hooks);
test('it renders', async function(assert) {
await render(hbs`{{user-avatar}}`);
assert.equal(this.element.textContent.trim(), '');
});
});