diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-22 18:18:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-22 18:18:06 +0300 |
commit | 95b9a603c32ce361d1746d4a00c58cd180218d41 (patch) | |
tree | 421f77e48879154b06a6ac34e3d9fe5203cc504f /spec/frontend/__helpers__/mocks | |
parent | 59f160b0cf3ca52fc25f827e57d0dc1273a50521 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/__helpers__/mocks')
-rw-r--r-- | spec/frontend/__helpers__/mocks/axios_utils.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/frontend/__helpers__/mocks/axios_utils.js b/spec/frontend/__helpers__/mocks/axios_utils.js index 674563b9f28..b1efd29dc8d 100644 --- a/spec/frontend/__helpers__/mocks/axios_utils.js +++ b/spec/frontend/__helpers__/mocks/axios_utils.js @@ -25,6 +25,7 @@ const onRequest = () => { // Use setImmediate to alloow the response interceptor to finish const onResponse = (config) => { activeRequests -= 1; + // eslint-disable-next-line no-restricted-syntax setImmediate(() => { events.emit('response', config); }); @@ -43,6 +44,7 @@ const subscribeToResponse = (predicate = () => true) => // If a request has been made synchronously, setImmediate waits for it to be // processed and the counter incremented. + // eslint-disable-next-line no-restricted-syntax setImmediate(listener); }); |