diff options
Diffstat (limited to 'spec/frontend/__helpers__/wait_for_promises.js')
-rw-r--r-- | spec/frontend/__helpers__/wait_for_promises.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/frontend/__helpers__/wait_for_promises.js b/spec/frontend/__helpers__/wait_for_promises.js index 2fd1cc6ba0d..753c3c5d92b 100644 --- a/spec/frontend/__helpers__/wait_for_promises.js +++ b/spec/frontend/__helpers__/wait_for_promises.js @@ -1 +1,4 @@ -export default () => new Promise((resolve) => requestAnimationFrame(resolve)); +export default () => + new Promise((resolve) => { + requestAnimationFrame(resolve); + }); |