Commit f635fbde authored by Filipa Lacerda's avatar Filipa Lacerda

Fixes if case to render author info in releases

parent c64f08ca
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
return this.release.author || {}; return this.release.author || {};
}, },
hasAuthor() { hasAuthor() {
return _.isEmpty(this.author); return !_.isEmpty(this.author);
}, },
}, },
}; };
......
...@@ -133,4 +133,8 @@ describe('Release block', () => { ...@@ -133,4 +133,8 @@ describe('Release block', () => {
release.assets.links[0].name, release.assets.links[0].name,
); );
}); });
it('renders author avatar', () => {
expect(vm.$el.querySelector('.user-avatar-link')).not.toBeNull();
});
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment