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/lazy_loader_spec.js | |
parent | 42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff) |
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'spec/frontend/lazy_loader_spec.js')
-rw-r--r-- | spec/frontend/lazy_loader_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/lazy_loader_spec.js b/spec/frontend/lazy_loader_spec.js index 5eb09bc2359..f8ac7568724 100644 --- a/spec/frontend/lazy_loader_spec.js +++ b/spec/frontend/lazy_loader_spec.js @@ -1,10 +1,10 @@ import { noop } from 'lodash'; import { TEST_HOST } from 'helpers/test_constants'; import { useMockMutationObserver, useMockIntersectionObserver } from 'helpers/mock_dom_observer'; +import waitForPromises from 'helpers/wait_for_promises'; import LazyLoader from '~/lazy_loader'; -import waitForPromises from './helpers/wait_for_promises'; -const execImmediately = callback => { +const execImmediately = (callback) => { callback(); }; @@ -20,7 +20,7 @@ describe('LazyLoader', () => { triggerMutation(document.body, { options: { childList: true, subtree: true } }); }; - const triggerIntersectionWithRatio = img => { + const triggerIntersectionWithRatio = (img) => { triggerIntersection(img, { entry: { intersectionRatio: 0.1 } }); }; |