jest-styled-components
Advanced tools
Comparing version 4.0.0-5 to 4.0.0-6
{ | ||
"name": "jest-styled-components", | ||
"version": "4.0.0-5", | ||
"version": "4.0.0-6", | ||
"description": "Jest utilities for Styled Components", | ||
@@ -40,3 +40,4 @@ "main": "./src/index.js", | ||
"peerDependencies": { | ||
"styled-components": "^2.1.0" | ||
"jest-matcher-utils": "^20.0.3", | ||
"styled-components": "^2.0.0" | ||
}, | ||
@@ -43,0 +44,0 @@ "jest": { |
const css = require('css') | ||
const { ShallowWrapper, ReactWrapper } = require('enzyme') | ||
const { printReceived, printExpected } = require('jest-matcher-utils') | ||
@@ -11,4 +10,3 @@ const { getCSS } = require('../utils') | ||
className = received.props.className | ||
} else if (received instanceof ShallowWrapper || | ||
received instanceof ReactWrapper) { | ||
} else if (typeof received.find === 'function') { | ||
className = received.find('[className]').first().prop('className') | ||
@@ -15,0 +13,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
13679
3
256