From b68914221f2a3011ec968e205ea8301f3588f66c Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Wed, 20 Dec 2023 15:26:24 +0100 Subject: [PATCH] [FIX] web, test_lint: remove afterEach from eslintrc test suite Commit [1] added a call to "afterEach" and added it to the test suite eslintrc but since it's only called there from the testing suite once and since it was not sync'd in the regular eslintrc, it's better to add it as a global in the file directly. [1]: https://github.com/odoo/odoo/commit/84389729392df491d5a67ebe25a8fa44beac1930 Part-of: odoo/odoo#146907 --- .../static/src/js/editor/odoo-editor/test/spec/utils.test.js | 1 + odoo/addons/test_lint/tests/eslintrc | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/test/spec/utils.test.js b/addons/web_editor/static/src/js/editor/odoo-editor/test/spec/utils.test.js index 802e8da8aed..57792b3d288 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/test/spec/utils.test.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/test/spec/utils.test.js @@ -1,4 +1,5 @@ /** @odoo-module */ +/* global afterEach */ import { ancestors, diff --git a/odoo/addons/test_lint/tests/eslintrc b/odoo/addons/test_lint/tests/eslintrc index 637750068d5..9831628e2db 100644 --- a/odoo/addons/test_lint/tests/eslintrc +++ b/odoo/addons/test_lint/tests/eslintrc @@ -45,7 +45,6 @@ "chai": "readonly", "describe": "readonly", "it": "readonly", - "afterEach": "readonly", "mocha": "readonly", "DOMPurify": "readonly" }