@testing-library/jest-dom
Advanced tools
Comparing version 5.16.3 to 5.16.4
@@ -23,3 +23,11 @@ "use strict"; | ||
function isAttributeVisible(element, previousElement) { | ||
return !element.hasAttribute('hidden') && (element.nodeName === 'DETAILS' && previousElement.nodeName !== 'SUMMARY' ? element.hasAttribute('open') : true); | ||
let detailsVisibility; | ||
if (previousElement) { | ||
detailsVisibility = element.nodeName === 'DETAILS' && previousElement.nodeName !== 'SUMMARY' ? element.hasAttribute('open') : true; | ||
} else { | ||
detailsVisibility = element.nodeName === 'DETAILS' ? element.hasAttribute('open') : true; | ||
} | ||
return !element.hasAttribute('hidden') && detailsVisibility; | ||
} | ||
@@ -26,0 +34,0 @@ |
{ | ||
"name": "@testing-library/jest-dom", | ||
"version": "5.16.3", | ||
"version": "5.16.4", | ||
"description": "Custom jest matchers to test the state of the DOM", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
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
125652
1173
1430