2019-01-24 22:34:32 +03:00
|
|
|
import hbs from 'htmlbars-inline-precompile';
|
2019-01-24 22:50:23 +03:00
|
|
|
import {describe, it} from 'mocha';
|
|
|
|
import {expect} from 'chai';
|
|
|
|
import {render} from '@ember/test-helpers';
|
|
|
|
import {setupRenderingTest} from 'ember-mocha';
|
2019-01-24 22:34:32 +03:00
|
|
|
|
2019-01-25 16:51:18 +03:00
|
|
|
describe('Integration: Component: gh-member-avatar', function () {
|
2019-01-24 22:50:23 +03:00
|
|
|
setupRenderingTest();
|
2019-01-24 22:34:32 +03:00
|
|
|
|
2019-01-24 22:50:23 +03:00
|
|
|
it('renders', async function () {
|
|
|
|
this.set('member', {
|
2022-01-22 02:44:40 +03:00
|
|
|
get(key) {
|
|
|
|
if (key === 'name') {
|
|
|
|
return 'Homer Simpson';
|
|
|
|
}
|
|
|
|
}
|
2019-01-24 22:50:23 +03:00
|
|
|
});
|
2019-01-24 22:34:32 +03:00
|
|
|
|
2019-01-25 16:51:18 +03:00
|
|
|
await render(hbs`<GhMemberAvatar @member={{member}} />`);
|
2019-01-24 22:50:23 +03:00
|
|
|
let avatar = this.element;
|
|
|
|
expect(avatar).to.exist;
|
|
|
|
});
|
2019-01-24 22:34:32 +03:00
|
|
|
});
|