jest-serializer-path
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -193,2 +193,10 @@ 'use strict' | ||
it('returns false when value is NaN', () => { | ||
const val = NaN | ||
const result = Serializer.test(val) | ||
expect(result).toEqual(false) | ||
}) | ||
}) | ||
@@ -195,0 +203,0 @@ |
@@ -119,2 +119,10 @@ 'use strict' | ||
/* eslint-disable no-self-compare */ | ||
// NaN is the only JS value which never equals itself | ||
if (value !== value) { | ||
return false | ||
} | ||
// return true if value is different from normalized value | ||
@@ -121,0 +129,0 @@ return normalizePaths(value) !== value |
{ | ||
"name": "jest-serializer-path", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"description": "Remove absolute paths from your Jest snapshots", | ||
@@ -5,0 +5,0 @@ "author": "tribou", |
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
148091
345