mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
20 lines
558 B
JavaScript
20 lines
558 B
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import {describe, it} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {render} from '@ember/test-helpers';
|
|
import {setupRenderingTest} from 'ember-mocha';
|
|
|
|
describe('Integration: Component: gh-member-avatar', function () {
|
|
setupRenderingTest();
|
|
|
|
it('renders', async function () {
|
|
this.set('member', {
|
|
name: 'Homer Simpson'
|
|
});
|
|
|
|
await render(hbs`<GhMemberAvatar @member={{member}} />`);
|
|
let avatar = this.element;
|
|
expect(avatar).to.exist;
|
|
});
|
|
});
|