Commit 976ab80a authored by Simon Knox's avatar Simon Knox

readd avatar url to approver avatar

parent 27a8cc7b
......@@ -72,6 +72,7 @@ export default {
<span v-for="approver in approvedBy">
<link-to-member-avatar
:avatarSize="20"
:avatar-url="approver.user.avatar_url"
extra-link-class="approver-avatar"
:display-name="approver.user.name"
:profile-url="approver.user.web_url"
......
......@@ -71,5 +71,21 @@ import ApprovalsFooter from '~/vue_merge_request_widget/ee/components/approvals/
});
});
});
describe('approvers list', function () {
it('shows link to member avatar for for each approver', function (done) {
this.approvalsFooter.approvedBy.push({
user: {
avatar_url: '/dummy.jpg',
},
});
Vue.nextTick(() => {
const memberImage = document.querySelector('.approvers-list img');
expect(memberImage.src).toMatch(/dummy\.jpg$/);
done();
});
});
});
});
})(window.gl || (window.gl = {}));
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