From 4458a016064ff99a613221b2ac3f5c3f663e9b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Mon, 4 Sep 2023 15:19:37 +0200 Subject: [PATCH] [REF] mail: tests: remove `nextTick` It was no longer used. Part-of: odoo/odoo#134025 --- addons/mail/static/tests/helpers/test_utils.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/addons/mail/static/tests/helpers/test_utils.js b/addons/mail/static/tests/helpers/test_utils.js index 840053a0594..75ba021fa9d 100644 --- a/addons/mail/static/tests/helpers/test_utils.js +++ b/addons/mail/static/tests/helpers/test_utils.js @@ -64,14 +64,6 @@ function nextAnimationFrame() { }); } -/** - * Wait a task tick, so that anything in micro-task queue that can be processed - * is processed. - */ -async function nextTick() { - await new Promise(setTimeout); -} - //------------------------------------------------------------------------------ // Public: test lifecycle //------------------------------------------------------------------------------ @@ -431,7 +423,6 @@ export { dropFiles, insertText, nextAnimationFrame, - nextTick, pasteFiles, scroll, start,