summaryrefslogtreecommitdiff
path: root/spec/frontend/__mocks__/@gitlab/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/__mocks__/@gitlab/ui.js')
-rw-r--r--spec/frontend/__mocks__/@gitlab/ui.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/spec/frontend/__mocks__/@gitlab/ui.js b/spec/frontend/__mocks__/@gitlab/ui.js
index 237f8b408f5..94e3f624c25 100644
--- a/spec/frontend/__mocks__/@gitlab/ui.js
+++ b/spec/frontend/__mocks__/@gitlab/ui.js
@@ -18,7 +18,7 @@ jest.mock('@gitlab/ui/dist/directives/tooltip.js', () => ({
}));
jest.mock('@gitlab/ui/dist/components/base/tooltip/tooltip.js', () => ({
- props: ['target', 'id', 'triggers', 'placement', 'container', 'boundary', 'disabled'],
+ props: ['target', 'id', 'triggers', 'placement', 'container', 'boundary', 'disabled', 'show'],
render(h) {
return h(
'div',
@@ -38,8 +38,16 @@ jest.mock('@gitlab/ui/dist/components/base/popover/popover.js', () => ({
required: false,
default: () => [],
},
+ ...Object.fromEntries(['target', 'triggers', 'placement'].map(prop => [prop, {}])),
},
render(h) {
- return h('div', this.$attrs, Object.keys(this.$slots).map(s => this.$slots[s]));
+ return h(
+ 'div',
+ {
+ class: 'gl-popover',
+ ...this.$attrs,
+ },
+ Object.keys(this.$slots).map(s => this.$slots[s]),
+ );
},
}));