diff options
author | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 22:34:23 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2021-01-20 22:34:23 +0300 |
commit | 6438df3a1e0fb944485cebf07976160184697d72 (patch) | |
tree | 00b09bfd170e77ae9391b1a2f5a93ef6839f2597 /spec/frontend/droplab/drop_down_spec.js | |
parent | 42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff) |
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'spec/frontend/droplab/drop_down_spec.js')
-rw-r--r-- | spec/frontend/droplab/drop_down_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/droplab/drop_down_spec.js b/spec/frontend/droplab/drop_down_spec.js index d33d6bb70f1..c1fbda6f211 100644 --- a/spec/frontend/droplab/drop_down_spec.js +++ b/spec/frontend/droplab/drop_down_spec.js @@ -151,7 +151,7 @@ describe('DropLab DropDown', () => { }; testContext.dummyListItem = document.createElement('li'); - jest.spyOn(testContext.event.target, 'closest').mockImplementation(selector => { + jest.spyOn(testContext.event.target, 'closest').mockImplementation((selector) => { if (selector === 'li') { return testContext.dummyListItem; } @@ -402,7 +402,7 @@ describe('DropLab DropDown', () => { beforeEach(() => { testContext.renderableList = {}; testContext.list = { - querySelector: q => { + querySelector: (q) => { if (q === '.filter-dropdown-loading') { return false; } @@ -414,7 +414,7 @@ describe('DropLab DropDown', () => { testContext.data = [0, 1]; testContext.customEvent = {}; - jest.spyOn(testContext.dropdown, 'renderChildren').mockImplementation(data => data); + jest.spyOn(testContext.dropdown, 'renderChildren').mockImplementation((data) => data); jest.spyOn(testContext.list, 'dispatchEvent').mockImplementation(() => {}); jest.spyOn(testContext.data, 'map'); jest.spyOn(window, 'CustomEvent').mockReturnValue(testContext.customEvent); @@ -465,7 +465,7 @@ describe('DropLab DropDown', () => { testContext.dropdown = { renderChildren: () => {}, list: testContext.list }; testContext.data = [0, 1]; - jest.spyOn(testContext.dropdown, 'renderChildren').mockImplementation(data => data); + jest.spyOn(testContext.dropdown, 'renderChildren').mockImplementation((data) => data); jest.spyOn(testContext.list, 'querySelector').mockImplementation(() => {}); jest.spyOn(testContext.data, 'map'); |