mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Fixed errors thrown in integration tests
no issue - errors were due to test setup rather than anything being broken - cleans logged errors in test output
This commit is contained in:
parent
57b1ab4800
commit
7376167d0a
@ -9,9 +9,11 @@ describe('Integration: Component: gh-image-uploader-with-preview', function () {
|
||||
setupRenderingTest();
|
||||
|
||||
it('renders image if provided', async function () {
|
||||
let remove = sinon.spy();
|
||||
this.set('remove', remove);
|
||||
this.set('image', 'http://example.com/test.png');
|
||||
|
||||
await render(hbs`{{gh-image-uploader-with-preview image=image}}`);
|
||||
await render(hbs`{{gh-image-uploader-with-preview image=image remove=(action remove)}}`);
|
||||
|
||||
expect(findAll('.gh-image-uploader.-with-image').length).to.equal(1);
|
||||
expect(find('img').getAttribute('src')).to.equal('http://example.com/test.png');
|
||||
|
@ -9,7 +9,11 @@ describe('Integration: Component: gh-member-avatar', function () {
|
||||
|
||||
it('renders', async function () {
|
||||
this.set('member', {
|
||||
name: 'Homer Simpson'
|
||||
get(key) {
|
||||
if (key === 'name') {
|
||||
return 'Homer Simpson';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
await render(hbs`<GhMemberAvatar @member={{member}} />`);
|
||||
|
Loading…
Reference in New Issue
Block a user