jest-styled-components
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "jest-styled-components", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Jest utilities for Styled Components", | ||
@@ -41,3 +41,3 @@ "main": "./src/index.js", | ||
"strip-ansi": "^3.0.1", | ||
"styled-components": "^2.0.0" | ||
"styled-components": "^2.0.1" | ||
}, | ||
@@ -44,0 +44,0 @@ "dependencies": { |
@@ -51,4 +51,4 @@ /* eslint-disable one-var, no-useless-escape, no-underscore-dangle, no-nested-ternary */ | ||
const css = getCSS(styleSheet) | ||
const styles = new RegExp(`${className} {([^}]*)`, 'g').exec(css) | ||
const capture = new RegExp(`${selector}:[\s]*([^;]+)`, 'g') | ||
const styles = new RegExp(`${className}[\\s]?{([^}]*)`, 'g').exec(css) | ||
const capture = new RegExp(`${selector}:[\\s]*([^;]+)`, 'g') | ||
@@ -55,0 +55,0 @@ if (styles && styles[1].match(capture)) { |
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
14057