diff options
Diffstat (limited to 'spec/frontend/__mocks__/@gitlab/ui.js')
-rw-r--r-- | spec/frontend/__mocks__/@gitlab/ui.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/frontend/__mocks__/@gitlab/ui.js b/spec/frontend/__mocks__/@gitlab/ui.js index ea36f1dabaf..237f8b408f5 100644 --- a/spec/frontend/__mocks__/@gitlab/ui.js +++ b/spec/frontend/__mocks__/@gitlab/ui.js @@ -18,8 +18,16 @@ 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'], render(h) { - return h('div', this.$attrs, this.$slots.default); + return h( + 'div', + { + class: 'gl-tooltip', + ...this.$attrs, + }, + this.$slots.default, + ); }, })); |