From 9d7b57221d405fda3a317949b4aadfa2d1116210 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Mon, 27 Feb 2023 21:20:58 -0800 Subject: repo: Check that GI module override function is callable Previously, we would return the override function if it was null, or a non-callable object, and then try to call it. Add tests for this case. --- installed-tests/js/modules/badOverrides2/.eslintrc.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 installed-tests/js/modules/badOverrides2/.eslintrc.yml (limited to 'installed-tests/js/modules/badOverrides2/.eslintrc.yml') diff --git a/installed-tests/js/modules/badOverrides2/.eslintrc.yml b/installed-tests/js/modules/badOverrides2/.eslintrc.yml new file mode 100644 index 00000000..b1c10f5d --- /dev/null +++ b/installed-tests/js/modules/badOverrides2/.eslintrc.yml @@ -0,0 +1,8 @@ +--- +# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento +rules: + no-throw-literal: 'off' # these are intended to be bad code + no-unused-vars: + - error + - varsIgnorePattern: ^_init$ -- cgit v1.2.1