jest-styled-components
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "jest-styled-components", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Jest utilities for Styled Components", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -12,3 +12,3 @@ const chalk = require('chalk') | ||
(isAddition(line) || isDeletion(line)) && | ||
(/\.[a-zA-Z]+ {/.test(line) || /className="[a-zA-Z]+"/.test(line)) | ||
(/\.[a-zA-Z:]+ {/.test(line) || /className="[a-zA-Z]+"/.test(line)) | ||
) | ||
@@ -23,10 +23,10 @@ | ||
if (isAddition(line)) { | ||
return chalk.green(line) | ||
return chalk.red(line) | ||
} | ||
if (isDeletion(line)) { | ||
return chalk.red(line) | ||
return chalk.green(line) | ||
} | ||
return chalk.gray(line) | ||
return chalk.dim(line) | ||
}).join('\n') | ||
@@ -33,0 +33,0 @@ ) |
@@ -22,2 +22,3 @@ const css = require('css') | ||
const indexEnd = position > -1 ? position : rule.selectors[0].length | ||
return classNames.includes(rule.selectors[0].substring(1, indexEnd)) | ||
@@ -24,0 +25,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
6192