@testing-library/dom
Advanced tools
Comparing version 8.18.1 to 8.19.0
@@ -45,3 +45,4 @@ "use strict"; | ||
trim, | ||
normalizer | ||
normalizer, | ||
selector | ||
} = options; | ||
@@ -55,3 +56,4 @@ const matchNormalizer = (0, _allUtils.makeNormalizer)({ | ||
const isNormalizedDifferent = normalizedText !== text.toString(); | ||
return `Unable to find an element with the text: ${isNormalizedDifferent ? `${normalizedText} (normalized from '${text}')` : text}. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.`; | ||
const isCustomSelector = (selector != null ? selector : '*') !== '*'; | ||
return `Unable to find an element with the text: ${isNormalizedDifferent ? `${normalizedText} (normalized from '${text}')` : text}${isCustomSelector ? `, which matches selector '${selector}'` : ''}. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.`; | ||
}; | ||
@@ -58,0 +60,0 @@ |
{ | ||
"name": "@testing-library/dom", | ||
"version": "8.18.1", | ||
"version": "8.19.0", | ||
"description": "Simple and complete DOM testing utilities that encourage good testing practices.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
2288726
20917