diff options
author | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 13:34:23 -0600 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 13:34:23 -0600 |
commit | 6438df3a1e0fb944485cebf07976160184697d72 (patch) | |
tree | 00b09bfd170e77ae9391b1a2f5a93ef6839f2597 /spec/frontend/invite_member/components/invite_member_modal_spec.js | |
parent | 42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff) | |
download | gitlab-ce-6438df3a1e0fb944485cebf07976160184697d72.tar.gz |
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'spec/frontend/invite_member/components/invite_member_modal_spec.js')
-rw-r--r-- | spec/frontend/invite_member/components/invite_member_modal_spec.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/frontend/invite_member/components/invite_member_modal_spec.js b/spec/frontend/invite_member/components/invite_member_modal_spec.js index 1d0adb3ab4c..1140c2a9475 100644 --- a/spec/frontend/invite_member/components/invite_member_modal_spec.js +++ b/spec/frontend/invite_member/components/invite_member_modal_spec.js @@ -1,18 +1,22 @@ import { shallowMount } from '@vue/test-utils'; -import { GlLink } from '@gitlab/ui'; +import { GlLink, GlModal } from '@gitlab/ui'; import { mockTracking, unmockTracking, triggerEvent } from 'helpers/tracking_helper'; +import { stubComponent } from 'helpers/stub_component'; import InviteMemberModal from '~/invite_member/components/invite_member_modal.vue'; const memberPath = 'member_path'; +const GlEmoji = { template: '<img />' }; const createComponent = () => { return shallowMount(InviteMemberModal, { provide: { membersPath: memberPath, }, stubs: { - 'gl-emoji': '<img/>', - 'gl-modal': '<div><slot name="modal-title"></slot><slot></slot></div>', + GlEmoji, + GlModal: stubComponent(GlModal, { + template: '<div><slot name="modal-title"></slot><slot></slot></div>', + }), }, }); }; |