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 {
return this.release.author || {};
},
hasAuthor() {
return _.isEmpty(this.author);
return !_.isEmpty(this.author);
},
},
};
......
......@@ -133,4 +133,8 @@ describe('Release block', () => {
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