diff options
author | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 13:34:23 -0600 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 13:34:23 -0600 |
commit | 6438df3a1e0fb944485cebf07976160184697d72 (patch) | |
tree | 00b09bfd170e77ae9391b1a2f5a93ef6839f2597 /spec/frontend/__mocks__/@gitlab/ui.js | |
parent | 42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff) | |
download | gitlab-ce-6438df3a1e0fb944485cebf07976160184697d72.tar.gz |
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'spec/frontend/__mocks__/@gitlab/ui.js')
-rw-r--r-- | spec/frontend/__mocks__/@gitlab/ui.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/__mocks__/@gitlab/ui.js b/spec/frontend/__mocks__/@gitlab/ui.js index 94e3f624c25..7cdecefab05 100644 --- a/spec/frontend/__mocks__/@gitlab/ui.js +++ b/spec/frontend/__mocks__/@gitlab/ui.js @@ -2,7 +2,7 @@ export * from '@gitlab/ui'; /** * The @gitlab/ui tooltip directive requires awkward and distracting set up in tests - * for components that use it (e.g., `attachToDocument: true` and `sync: true` passed + * for components that use it (e.g., `attachTo: document.body` and `sync: true` passed * to the `mount` helper from `vue-test-utils`). * * This mock decouples those tests from the implementation, removing the need to set @@ -38,7 +38,7 @@ jest.mock('@gitlab/ui/dist/components/base/popover/popover.js', () => ({ required: false, default: () => [], }, - ...Object.fromEntries(['target', 'triggers', 'placement'].map(prop => [prop, {}])), + ...Object.fromEntries(['target', 'triggers', 'placement'].map((prop) => [prop, {}])), }, render(h) { return h( @@ -47,7 +47,7 @@ jest.mock('@gitlab/ui/dist/components/base/popover/popover.js', () => ({ class: 'gl-popover', ...this.$attrs, }, - Object.keys(this.$slots).map(s => this.$slots[s]), + Object.keys(this.$slots).map((s) => this.$slots[s]), ); }, })); |