eslint-plugin-testing-library
Advanced tools
Comparing version 5.10.1 to 5.10.2
{ | ||
"name": "eslint-plugin-testing-library", | ||
"version": "5.10.1", | ||
"version": "5.10.2", | ||
"description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -33,5 +33,10 @@ "use strict"; | ||
const innerFunction = (0, node_utils_1.getInnermostReturningFunction)(context, node); | ||
if (innerFunction) { | ||
functionWrappersNames.push((0, node_utils_1.getFunctionName)(innerFunction)); | ||
if (!innerFunction) { | ||
return; | ||
} | ||
const functionName = (0, node_utils_1.getFunctionName)(innerFunction); | ||
if (functionName.length === 0) { | ||
return; | ||
} | ||
functionWrappersNames.push(functionName); | ||
} | ||
@@ -38,0 +43,0 @@ function detectDestructuredAsyncUtilWrapperAliases(node) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245510
4276
0
14