mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
7376167d0a
no issue - errors were due to test setup rather than anything being broken - cleans logged errors in test output
24 lines
661 B
JavaScript
24 lines
661 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', {
|
|
get(key) {
|
|
if (key === 'name') {
|
|
return 'Homer Simpson';
|
|
}
|
|
}
|
|
});
|
|
|
|
await render(hbs`<GhMemberAvatar @member={{member}} />`);
|
|
let avatar = this.element;
|
|
expect(avatar).to.exist;
|
|
});
|
|
});
|