diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-12 00:09:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-12 00:09:19 +0300 |
commit | fca89bb73ff5b1d14c98c72481f9268fee107ea0 (patch) | |
tree | e1c8a2c4fe5df7f054fd09e49f53bcfb51e51c84 /spec/frontend/boards | |
parent | 76e9fc7b29c1ce716c26932e9fbec0f3c99f53f4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/boards')
-rw-r--r-- | spec/frontend/boards/issue_card_spec.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/spec/frontend/boards/issue_card_spec.js b/spec/frontend/boards/issue_card_spec.js index f78e4dad2c0..09b5c664bee 100644 --- a/spec/frontend/boards/issue_card_spec.js +++ b/spec/frontend/boards/issue_card_spec.js @@ -155,18 +155,17 @@ describe('Issue card component', () => { describe('assignee default avatar', () => { beforeEach(done => { + global.gon.default_avatar_url = 'default_avatar'; + wrapper.setProps({ issue: { ...wrapper.props('issue'), assignees: [ - new ListAssignee( - { - id: 1, - name: 'testing 123', - username: 'test', - }, - 'default_avatar', - ), + new ListAssignee({ + id: 1, + name: 'testing 123', + username: 'test', + }), ], }, }); @@ -174,6 +173,10 @@ describe('Issue card component', () => { wrapper.vm.$nextTick(done); }); + afterEach(() => { + global.gon.default_avatar_url = null; + }); + it('displays defaults avatar if users avatar is null', () => { expect(wrapper.find('.board-card-assignee img').exists()).toBe(true); expect(wrapper.find('.board-card-assignee img').attributes('src')).toBe( |