summaryrefslogtreecommitdiff
path: root/spec/frontend/tooltips
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-18 10:34:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-18 10:34:06 +0000
commit859a6fb938bb9ee2a317c46dfa4fcc1af49608f0 (patch)
treed7f2700abe6b4ffcb2dcfc80631b2d87d0609239 /spec/frontend/tooltips
parent446d496a6d000c73a304be52587cd9bbc7493136 (diff)
downloadgitlab-ce-859a6fb938bb9ee2a317c46dfa4fcc1af49608f0.tar.gz
Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42
Diffstat (limited to 'spec/frontend/tooltips')
-rw-r--r--spec/frontend/tooltips/components/tooltips_spec.js2
-rw-r--r--spec/frontend/tooltips/index_spec.js26
2 files changed, 1 insertions, 27 deletions
diff --git a/spec/frontend/tooltips/components/tooltips_spec.js b/spec/frontend/tooltips/components/tooltips_spec.js
index 3a894427643..e21626456e2 100644
--- a/spec/frontend/tooltips/components/tooltips_spec.js
+++ b/spec/frontend/tooltips/components/tooltips_spec.js
@@ -1,5 +1,5 @@
-import { shallowMount } from '@vue/test-utils';
import { GlTooltip } from '@gitlab/ui';
+import { shallowMount } from '@vue/test-utils';
import { useMockMutationObserver } from 'helpers/mock_dom_observer';
import Tooltips from '~/tooltips/components/tooltips.vue';
diff --git a/spec/frontend/tooltips/index_spec.js b/spec/frontend/tooltips/index_spec.js
index bff9ee0c7f2..9c03ca8f4c9 100644
--- a/spec/frontend/tooltips/index_spec.js
+++ b/spec/frontend/tooltips/index_spec.js
@@ -1,4 +1,3 @@
-import jQuery from 'jquery';
import {
add,
initTooltips,
@@ -146,29 +145,4 @@ describe('tooltips/index.js', () => {
expect(tooltipsApp.fixTitle).toHaveBeenCalledWith(target);
});
-
- describe('when glTooltipsEnabled feature flag is disabled', () => {
- beforeEach(() => {
- window.gon.features.glTooltips = false;
- });
-
- it.each`
- method | methodName | bootstrapParams
- ${dispose} | ${'dispose'} | ${'dispose'}
- ${fixTitle} | ${'fixTitle'} | ${'_fixTitle'}
- ${enable} | ${'enable'} | ${'enable'}
- ${disable} | ${'disable'} | ${'disable'}
- ${hide} | ${'hide'} | ${'hide'}
- ${show} | ${'show'} | ${'show'}
- ${add} | ${'init'} | ${{ title: 'the title' }}
- `('delegates $methodName to bootstrap tooltip API', ({ method, bootstrapParams }) => {
- const elements = jQuery(createTooltipTarget());
-
- jest.spyOn(jQuery.fn, 'tooltip');
-
- method(elements, bootstrapParams);
-
- expect(elements.tooltip).toHaveBeenCalledWith(bootstrapParams);
- });
- });
});