diff options
Diffstat (limited to 'spec/frontend/issuable/components/related_issuable_item_spec.js')
-rw-r--r-- | spec/frontend/issuable/components/related_issuable_item_spec.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/frontend/issuable/components/related_issuable_item_spec.js b/spec/frontend/issuable/components/related_issuable_item_spec.js index 7322894164b..bfb0aaa1c67 100644 --- a/spec/frontend/issuable/components/related_issuable_item_spec.js +++ b/spec/frontend/issuable/components/related_issuable_item_spec.js @@ -236,23 +236,21 @@ describe('RelatedIssuableItem', () => { describe('when work item is issue and the related issue title is clicked', () => { it('does not open', () => { mountComponent({ props: { workItemType: 'ISSUE' } }); - wrapper.vm.$refs.modal.show = jest.fn(); findTitleLink().vm.$emit('click', { preventDefault: () => {} }); - expect(wrapper.vm.$refs.modal.show).not.toHaveBeenCalled(); + expect(showModalSpy).not.toHaveBeenCalled(); }); }); describe('when work item is task and the related issue title is clicked', () => { beforeEach(() => { mountComponent({ props: { workItemType: 'TASK' } }); - wrapper.vm.$refs.modal.show = jest.fn(); findTitleLink().vm.$emit('click', { preventDefault: () => {} }); }); it('opens', () => { - expect(wrapper.vm.$refs.modal.show).toHaveBeenCalled(); + expect(showModalSpy).toHaveBeenCalled(); }); it('updates the url params with the work item id', () => { |