diff --git a/lib/util/ast.js b/lib/util/ast.js index 87b2025..95fe823 100644 --- a/lib/util/ast.js +++ b/lib/util/ast.js @@ -63,6 +63,7 @@ function isFunctionCallWithName(node, names) { return isCallExpression(node) && names.includes(getNodeName(node.callee)); } +// eslint-disable-next-line max-statements function createAstUtils(settings) { const additionalCustomNames = getAddtionalNames(settings); @@ -74,7 +75,7 @@ function createAstUtils(settings) { } function isDescribe(node, options = {}) { - return (buildIsDescribeAnswerer(options))(node); + return buildIsDescribeAnswerer(options)(node); } function buildIsTestCaseAnswerer(options = {}) { @@ -85,7 +86,7 @@ function createAstUtils(settings) { } function isTestCase(node, options = {}) { - return (buildIsTestCaseAnswerer(options))(node); + return buildIsTestCaseAnswerer(options)(node); } function isSuiteConfigExpression(node) { @@ -142,7 +143,7 @@ function createAstUtils(settings) { findReturnStatement, isReturnOfUndefined, buildIsDescribeAnswerer, - buildIsTestCaseAnswerer, + buildIsTestCaseAnswerer }; }