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:
Kevin Ansfield 2022-01-21 23:44:40 +00:00
parent 57b1ab4800
commit 7376167d0a
2 changed files with 8 additions and 2 deletions

View File

@ -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');

View File

@ -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}} />`);