eslint-plugin-testing-library
Advanced tools
Comparing version 5.8.0 to 5.9.0
@@ -269,2 +269,8 @@ "use strict"; | ||
exports.getAssertNodeInfo = getAssertNodeInfo; | ||
const matcherNamesHandlePromise = [ | ||
'resolves', | ||
'rejects', | ||
'toResolve', | ||
'toReject', | ||
]; | ||
function hasClosestExpectResolvesRejects(node) { | ||
@@ -278,3 +284,3 @@ if ((0, is_node_of_type_1.isCallExpression)(node) && | ||
return (utils_1.ASTUtils.isIdentifier(expectMatcher) && | ||
(expectMatcher.name === 'resolves' || expectMatcher.name === 'rejects')); | ||
matcherNamesHandlePromise.includes(expectMatcher.name)); | ||
} | ||
@@ -281,0 +287,0 @@ if (!node.parent) { |
{ | ||
"name": "eslint-plugin-testing-library", | ||
"version": "5.8.0", | ||
"version": "5.9.0", | ||
"description": "ESLint rules for Testing Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
237854
4214