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/tooltips/components/tooltips_spec.js')
-rw-r--r--spec/frontend/tooltips/components/tooltips_spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/frontend/tooltips/components/tooltips_spec.js b/spec/frontend/tooltips/components/tooltips_spec.js
index 0edc5248629..50848ca2978 100644
--- a/spec/frontend/tooltips/components/tooltips_spec.js
+++ b/spec/frontend/tooltips/components/tooltips_spec.js
@@ -80,6 +80,14 @@ describe('tooltips/components/tooltips.vue', () => {
expect(wrapper.find(GlTooltip).html()).toContain(target.getAttribute('title'));
});
+ it('sets the configuration values passed in the config object', async () => {
+ const config = { show: true };
+ target = createTooltipTarget();
+ wrapper.vm.addTooltips([target], config);
+ await wrapper.vm.$nextTick();
+ expect(wrapper.find(GlTooltip).props()).toMatchObject(config);
+ });
+
it.each`
attribute | value | prop
${'data-placement'} | ${'bottom'} | ${'placement'}