@jest/expect-utils
Advanced tools
Comparing version 28.0.2 to 28.1.0
@@ -8,2 +8,3 @@ 'use strict'; | ||
exports.isA = isA; | ||
exports.isImmutableList = isImmutableList; | ||
exports.isImmutableUnorderedKeyed = isImmutableUnorderedKeyed; | ||
@@ -239,6 +240,7 @@ exports.isImmutableUnorderedSet = isImmutableUnorderedSet; | ||
); | ||
} // SENTINEL constants are from https://github.com/facebook/immutable-js | ||
} // SENTINEL constants are from https://github.com/immutable-js/immutable-js/tree/main/src/predicates | ||
const IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@'; | ||
const IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@'; | ||
const IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@'; | ||
const IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@'; | ||
@@ -261,1 +263,5 @@ | ||
} | ||
function isImmutableList(maybeList) { | ||
return !!(maybeList && maybeList[IS_LIST_SENTINEL]); | ||
} |
@@ -281,7 +281,9 @@ 'use strict'; | ||
const aEntries = Object.entries(a); | ||
const bEntries = Object.entries(b); | ||
if (!(0, _jasmineUtils.isImmutableList)(a)) { | ||
const aEntries = Object.entries(a); | ||
const bEntries = Object.entries(b); | ||
if (!(0, _jasmineUtils.equals)(aEntries, bEntries)) { | ||
return false; | ||
if (!(0, _jasmineUtils.equals)(aEntries, bEntries)) { | ||
return false; | ||
} | ||
} // Remove the first value from the stack of traversed values. | ||
@@ -288,0 +290,0 @@ |
{ | ||
"name": "@jest/expect-utils", | ||
"version": "28.0.2", | ||
"version": "28.1.0", | ||
"repository": { | ||
@@ -23,3 +23,4 @@ "type": "git", | ||
"devDependencies": { | ||
"jest-matcher-utils": "^28.0.2" | ||
"immutable": "^4.0.0", | ||
"jest-matcher-utils": "^28.1.0" | ||
}, | ||
@@ -32,3 +33,3 @@ "engines": { | ||
}, | ||
"gitHead": "279ee6658d763f024d51f340fab6a37c17d94502" | ||
"gitHead": "f5db241312f46528389e55c38221e6b6968622cf" | ||
} |
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
25187
688
2