jest-styled-components
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "jest-styled-components", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Jest utilities for Styled Components", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -8,3 +8,3 @@ [![Build Status](https://travis-ci.org/styled-components/jest-styled-components.svg?branch=master)](https://travis-ci.org/styled-components/jest-styled-components) | ||
<img alt="Preview" src="screenshot.png" width="500px" height="450px" /> | ||
<img alt="Preview" src="screenshot.png" width="500px" height="505px" /> | ||
@@ -11,0 +11,0 @@ ## Installation |
@@ -7,4 +7,4 @@ const css = require('css') | ||
classNames = node.children.reduce((acc, child) => ( | ||
acc.concat(getClassNames(child, acc), | ||
)), classNames) | ||
acc.concat(getClassNames(child, acc)) | ||
), classNames) | ||
} | ||
@@ -21,3 +21,3 @@ if (node.props && node.props.className) { | ||
ast.stylesheet.rules = ast.stylesheet.rules.filter(rule => ( | ||
classNames.includes(rule.selectors[0].substring(1)) | ||
rule.type === 'rule' && classNames.includes(rule.selectors[0].substring(1)) | ||
)) | ||
@@ -24,0 +24,0 @@ |
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
5521