eslint-plugin-jest-dom
Advanced tools
Comparing version 3.1.6 to 3.1.7
@@ -46,3 +46,3 @@ "use strict"; | ||
if (args.value || args.name || args.expressions && args.expressions.length) { | ||
if (isNonEmptyStringOrTemplateLiteral(args)) { | ||
return; | ||
@@ -61,3 +61,3 @@ } | ||
if (args.value || args.name || args.expressions && args.expressions.length) { | ||
if (isNonEmptyStringOrTemplateLiteral(args)) { | ||
return; | ||
@@ -115,2 +115,8 @@ } | ||
exports.create = create; | ||
exports.create = create; | ||
function isNonEmptyStringOrTemplateLiteral(node) { | ||
var _node$quasis, _node$quasis2, _node$quasis$, _node$quasis$$value; | ||
return !(node.type === "Literal" || node.type === "TemplateLiteral") || node.value || node.name || (node == null ? void 0 : (_node$quasis = node.quasis) == null ? void 0 : _node$quasis.length) > 0 && !((node == null ? void 0 : (_node$quasis2 = node.quasis) == null ? void 0 : _node$quasis2.length) === 1 && (node == null ? void 0 : (_node$quasis$ = node.quasis[0]) == null ? void 0 : (_node$quasis$$value = _node$quasis$.value) == null ? void 0 : _node$quasis$$value.raw) === ""); | ||
} |
{ | ||
"name": "eslint-plugin-jest-dom", | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
39190
502