Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/issue_show/components/pinned_links_spec.js')
-rw-r--r--spec/frontend/issue_show/components/pinned_links_spec.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/spec/frontend/issue_show/components/pinned_links_spec.js b/spec/frontend/issue_show/components/pinned_links_spec.js
deleted file mode 100644
index 3fe1f9fd6d9..00000000000
--- a/spec/frontend/issue_show/components/pinned_links_spec.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import { GlButton } from '@gitlab/ui';
-import { shallowMount } from '@vue/test-utils';
-import PinnedLinks from '~/issue_show/components/pinned_links.vue';
-import { STATUS_PAGE_PUBLISHED, JOIN_ZOOM_MEETING } from '~/issue_show/constants';
-
-const plainZoomUrl = 'https://zoom.us/j/123456789';
-const plainStatusUrl = 'https://status.com';
-
-describe('PinnedLinks', () => {
- let wrapper;
-
- const findButtons = () => wrapper.findAll(GlButton);
-
- const createComponent = (props) => {
- wrapper = shallowMount(PinnedLinks, {
- propsData: {
- zoomMeetingUrl: '',
- publishedIncidentUrl: '',
- ...props,
- },
- });
- };
-
- it('displays Zoom link', () => {
- createComponent({
- zoomMeetingUrl: `<a href="${plainZoomUrl}">Zoom</a>`,
- });
-
- expect(findButtons().at(0).text()).toBe(JOIN_ZOOM_MEETING);
- });
-
- it('displays Status link', () => {
- createComponent({
- publishedIncidentUrl: `<a href="${plainStatusUrl}">Status</a>`,
- });
-
- expect(findButtons().at(0).text()).toBe(STATUS_PAGE_PUBLISHED);
- });
-
- it('does not render if there are no links', () => {
- createComponent({
- zoomMeetingUrl: '',
- publishedIncidentUrl: '',
- });
-
- expect(findButtons()).toHaveLength(0);
- });
-});