@emotion/snapshot-serializer
Advanced tools
Comparing version 0.5.0 to 0.6.2
@@ -48,3 +48,3 @@ 'use strict'; | ||
return true; | ||
} else if (Array.isArray(val) && !val[0].withNewStyles && val[0].$$typeof === Symbol.for('react.test.json')) { | ||
} else if (Array.isArray(val) && val[0] && !val[0].withNewStyles && val[0].$$typeof === Symbol.for('react.test.json')) { | ||
return true; | ||
@@ -51,0 +51,0 @@ } |
@@ -46,3 +46,3 @@ import { parse, stringify } from 'css'; | ||
return true; | ||
} else if (Array.isArray(val) && !val[0].withNewStyles && val[0].$$typeof === Symbol.for('react.test.json')) { | ||
} else if (Array.isArray(val) && val[0] && !val[0].withNewStyles && val[0].$$typeof === Symbol.for('react.test.json')) { | ||
return true; | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "@emotion/snapshot-serializer", | ||
"version": "0.5.0", | ||
"version": "0.6.2", | ||
"description": "A snapshot serializer for jest and emotion", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -34,2 +34,3 @@ // @flow | ||
Array.isArray(val) && | ||
val[0] && | ||
!val[0].withNewStyles && | ||
@@ -36,0 +37,0 @@ val[0].$$typeof === Symbol.for('react.test.json') |
Sorry, the diff of this file is not supported yet
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
17232
240